projects built with a new template shows an /opt warning
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Quickly |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
How to generate warning
export PATH=/home/
Copy ubuntu-application to create new /home/tony/
export PATH=/home/
<snip>
export PATH=/home/
WARNING: can't update your project to support /opt. This doesn't matter if you don't plan to submit your project to the application review board. Cause is: os.putenv(
<snip>
However if you copy create.py from ubuntu-application to optless the warning does not appear
quickly --version
Quickly 11.03
Python interpreter: /usr/bin/python 2.6.6
Python standard library: /usr/lib/python2.6
Quickly used library: /home/tony/
Quickly data path: /home/tony/
Quickly detected template directories:
Related branches
- Tony Byrne: Needs Fixing
-
Diff: 89 lines (+48/-3)3 files modifiedquickly/builtincommands.py (+10/-1)
quickly/templatetools.py (+23/-2)
quickly/test/quickly.sh (+15/-0)
This warning only occurs on first call to package. During this first call, upgrade.py is called with len(sys.argv) of 3. On line 38 there is a assignment
project_version = sys.argv[1]
while sys.argv is ['/path/ to/templates/ ubuntu- application/ upgrade. py', '', '11.03'] so project_version is ''. This causes quickly to attempt to upgrade a file (bin/test-ptoject) that does not need an upgrade so it fails and shows the warning.
Before first call to package .quickly has these contents :
project = test-project
version = 11.03
template = pygtk-application
After that .quickly has these contents :
project = test-project ubuntu- application = 11.03
version = 11.03
template = pygtk-application
version_