Add emerge as pisi history operation

This commit is contained in:
Faik Uygur
2008-02-20 10:06:23 +00:00
parent f1663fb54d
commit c18bd15e64
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -600,6 +600,7 @@ def upgrade(*args, **kw):
return pisi.operations.upgrade.upgrade(*args, **kw)
def emerge(*args, **kw):
pisi.db.historydb.HistoryDB().create_history("emerge")
return pisi.operations.emerge.emerge(*args, **kw)
def calculate_conflicts(*args, **kw):
+1 -1
View File
@@ -76,7 +76,7 @@ class History(xmlfile.XmlFile):
def create(self, operation):
if operation not in ["upgrade", "remove", "install", "snapshot"]:
if operation not in ["upgrade", "remove", "emerge", "install", "snapshot"]:
raise Exception("Unknown package operation")
self.histfile = "%s_%s.xml" % (self._get_latest(), operation)