2012-05-31 21:15:04 |
Michael Terry |
description |
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://wiki.ubuntu.com/Quickly/GTK3 for
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. |
[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://wiki.ubuntu.com/Quickly/GTK3 for
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-application template like the flash-game one or third party templates.
[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://wiki.ubuntu.com/Quickly/GTK3 for
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. |
|