--droplet on command line does not work correctly

Bug #277073 reported by Kent Tenney on 2008-10-02
Affects Status Importance Assigned to Milestone

Bug Description

ktenney@nalbert:~/src/phatch$ bzr revno
Format <RepositoryFormatKnit1> for file:///home/ktenney/src/phatch/.bzr/ is deprecated - please use 'bzr upgrade' to get better performance

ktenney@nalbert:~$ phatch --droplet
Traceback (most recent call last):
  File "/usr/bin/phatch", line 14, in <module>
    main(config_paths, app_file = __file__)
  File "/usr/lib/python2.5/site-packages/phatch/app.py", line 161, in main
  File "/usr/lib/python2.5/site-packages/phatch/app.py", line 136, in _droplet
IndexError: list index out of range

Stani: It should give a warning instead of a traceback and the droplet functionality should work.

Kent Tenney (ktenney) on 2008-10-02
description: updated
Stani (stani) wrote :

Thanks for reporting this bug. Normally you should specify an action list, but that doesn't seem to work as well.

Changed in phatch:
assignee: nobody → stani
importance: Undecided → High
status: New → Confirmed
description: updated
Stani (stani) wrote :

If you don't specify a droplet, Phatch will now let you choose a recent action list.

$ bzr diff
=== modified file 'phatch/app.py'
--- phatch/app.py 2008-03-05 00:56:20 +0000
+++ phatch/app.py 2008-11-08 17:22:16 +0000
@@ -158,6 +158,8 @@
         settings['droplet'] = True
     if settings['droplet']:
+ if not paths:
+ paths = ['recent']
     elif len(paths)>1 or settings['console'] or settings['interactive']:

$ bzr commit -m "Fix --droplet command option without action list"
Committing to: /media/16gb/sync/python/phatch/trunk/
modified phatch/app.py
Committed revision 542.

I am unable to push it to bzr on launchpad at the moment. I'll try to fix that asap.

Changed in phatch:
status: Confirmed → In Progress
Stani (stani) wrote :

I've uploaded it upstream to launchpad bzr.

Changed in phatch:
status: In Progress → Fix Committed
Stani (stani) on 2008-12-01
Changed in phatch:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers