Comment 0 for bug 1007006

Revision history for this message
Michael Terry (mterry) wrote :

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.