diff options
author | Calum Lind <calumlind+deluge@gmail.com> | 2012-01-02 16:53:28 +0000 |
---|---|---|
committer | Calum Lind <calumlind+deluge@gmail.com> | 2012-01-02 16:53:28 +0000 |
commit | 5cffc8f7e0e7974fb4a1085dc3a6d9819f0b6fb9 (patch) | |
tree | 6e7e701e5fa9a24626b3ce242427eb040f657f74 | |
parent | 97912a28e45510c0df8425ed1f4604c6d56e6d02 (diff) | |
download | deluge-5cffc8f7e0e7974fb4a1085dc3a6d9819f0b6fb9.tar.gz deluge-5cffc8f7e0e7974fb4a1085dc3a6d9819f0b6fb9.tar.bz2 deluge-5cffc8f7e0e7974fb4a1085dc3a6d9819f0b6fb9.zip |
Add clean desktop file to setup.py
-rw-r--r-- | setup.py | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -239,7 +239,7 @@ if build_libtorrent: _ext_modules = [libtorrent] class build_trans(cmd.Command): - description = 'Compile .po files into .mo files' + description = 'Compile .po files into .mo files & create .desktop file' user_options = [ ('build-lib', None, "lib build folder") @@ -459,6 +459,11 @@ class clean(_clean): self.run_command(cmd_name) _clean.run(self) + desktop_data='deluge/data/share/applications/deluge.desktop' + if os.path.exists(desktop_data): + print("Deleting %s" % desktop_data) + os.remove(desktop_data) + cmdclass = { 'build': build, 'build_trans': build_trans, |