notify when a desktop file is extracted
This commit is contained in:
@@ -164,6 +164,10 @@ class ArchiveTar(ArchiveBase):
|
|||||||
else:
|
else:
|
||||||
os.lchown(tarinfo.name, uid, gid)
|
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)
|
os.chdir(oldwd)
|
||||||
self.close()
|
self.close()
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -13,7 +13,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
(installed, upgraded, removed, installing, removing, configuring, configured, extracting,
|
(installed, upgraded, removed, installing, removing, configuring, configured, extracting,
|
||||||
downloading, packagestogo, updatingrepo, cached) = range(12)
|
downloading, packagestogo, updatingrepo, cached, desktopfile) = range(13)
|
||||||
|
|
||||||
class UI(object):
|
class UI(object):
|
||||||
"Abstract class for UI operations, derive from this."
|
"Abstract class for UI operations, derive from this."
|
||||||
|
|||||||
Reference in New Issue
Block a user