Fresh ubuntu-cli 12.04 project warn about PyGI
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Quickly |
Fix Released
|
Undecided
|
Unassigned | ||
quickly (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Precise |
Fix Released
|
Undecided
|
Vibhav Pant |
Bug Description
[Impact]
When using the command line interface template (ubuntu-cli) in 12.04, you will repeatedly get warnings like:
WARNING: Your project is out of date. Newly created projects use
GTK+ 3, PyGI, and GSettings. See https:/
porting information and when you have finished porting your code, run
'quickly upgrade' to get rid of this message.
This is a scary warning and is false regardless. It comes from code that confuses ubuntu-cli with ubuntu-application and thinks the current project is out-of-date.
While this isn't a super popular template, it also affects any non-ubuntu-
[Test Case]
cd /tmp
quickly create ubuntu-cli ubucli
cd ubucli
quickly run
# Notice warning
[Regression Potential]
The fix is tiny and only affects whether this warning is printed.
[Original Report]
In 12.04, if you do:
quickly create ubuntu-cli test-project
cd test-project
quickly run
You will see:
WARNING: Your project is out of date. Newly created projects use
GTK+ 3, PyGI, and GSettings. See https:/
porting information and when you have finished porting your code, run
'quickly upgrade' to get rid of this message.
Which is silly on a fresh project. This happens every run.
Why this occurs:
1) 'create' causes a .quickly file to be created with version 12.04 of ubuntu-cli
2) upgrade.py looks what version of ubuntu-application is saved, sees none and uses a default version of the empty string (to force all upgrades to happen).
3) The empty string causes the warning to be spit out and (correctly) exits before saving the latest version of ubuntu-application in .quickly.
A simple fix is to skip this warning when we encounter an empty string, since we know a fresh project is OK in regards to PyGI.
Related branches
- Didier Roche-Tolomelli: Approve
-
Diff: 12 lines (+1/-1)1 file modifieddata/templates/ubuntu-application/upgrade.py (+1/-1)
Changed in quickly: | |
status: | New → Fix Committed |
Changed in quickly: | |
milestone: | none → 12.05 |
Changed in quickly: | |
status: | Fix Committed → Fix Released |
description: | updated |
Changed in quickly (Ubuntu Precise): | |
assignee: | nobody → Vibhav Pant (vibhavp) |
Status changed to 'Confirmed' because the bug affects multiple users.