notify when a desktop file is extracted

This commit is contained in:
Faik Uygur
2009-05-28 11:38:41 +00:00
parent f4a44c5d87
commit cc195f4038
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -164,6 +164,10 @@ class ArchiveTar(ArchiveBase):
else:
os.lchown(tarinfo.name, uid, gid)
# Added for package-manager
if tarinfo.name.endswith(".desktop"):
ctx.ui.notify(pisi.ui.desktopfile, desktopfile=tarinfo.name)
os.chdir(oldwd)
self.close()
+1 -1
View File
@@ -13,7 +13,7 @@
#
(installed, upgraded, removed, installing, removing, configuring, configured, extracting,
downloading, packagestogo, updatingrepo, cached) = range(12)
downloading, packagestogo, updatingrepo, cached, desktopfile) = range(13)
class UI(object):
"Abstract class for UI operations, derive from this."