~cmiller/ubuntu/quantal/deluge/fix-parameter-move-storage

« back to all changes in this revision

Viewing changes to deluge/plugins/execute/execute/core.py

  • Committer: Bazaar Package Importer
  • Author(s): Cristian Greco
  • Date: 2009-12-24 00:57:59 UTC
  • mfrom: (4.1.9 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091224005759-ifkuzevkdqqx4jle
Tags: 1.2.0~rc5-1
* New upstream version.
  - fix startup with fresh configs. (Closes: #560384)
* debian/control: drop useless dependencies on dbus for deluge-gtk.
* fix_manifest_in.patch: dropped, file MANIFEST.in has been deleted by
  upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
78
78
 
79
79
    def execute_commands(self, torrent_id, event):
80
80
        torrent = component.get("TorrentManager").torrents[torrent_id]
81
 
        info = torrent.get_status(["name", "save_path"])
 
81
        info = torrent.get_status(["name", "save_path",
 
82
            "move_on_completed_path"])
 
83
 
82
84
        torrent_name = info["name"]
83
 
        path = info["save_path"]
 
85
        path = info["save_path"] if \
 
86
            info["move_on_completed_path"] == info["save_path"] else \
 
87
            info["move_on_completed_path"]
 
88
 
84
89
        for command in self.config["commands"]:
85
90
            if command[EXECUTE_EVENT] == event:
86
91
                command = os.path.expandvars(command[EXECUTE_COMMAND])