Fixed repo_version_bumped() ignoring with_version() argument.

This commit is contained in:
Bahadır Kandemir
2009-12-04 10:07:59 +00:00
parent 915d16cdec
commit ffbd4526e5
2 changed files with 8 additions and 4 deletions
+4
View File
@@ -1,3 +1,7 @@
2009-12-04 Bahadır Kandemir <bahadir@pardus.org.tr>
* pisi/scenarioapi/package.py: Fixed repo_version_bumped() ignoring
with_version() argument.
2009-12-04 Bahadır Kandemir <bahadir@pardus.org.tr> 2009-12-04 Bahadır Kandemir <bahadir@pardus.org.tr>
* pisi/scenarioapi/pspec.py: AnyDependency support added to * pisi/scenarioapi/pspec.py: AnyDependency support added to
with_dependencies() method. Simply give AnyDependency list as an with_dependencies() method. Simply give AnyDependency list as an
+2 -2
View File
@@ -69,8 +69,6 @@ class Package:
return os.path.basename(found[0]) return os.path.basename(found[0])
def version_bump(self, *args): def version_bump(self, *args):
self.pspec.update_history(self.date, self.version)
for _with in args: for _with in args:
if _with.types == CONFLICT and _with.action == ADDED: if _with.types == CONFLICT and _with.action == ADDED:
self.pspec.add_conflicts(_with.data) self.pspec.add_conflicts(_with.data)
@@ -90,6 +88,8 @@ class Package:
if _with.types == VERSION and _with.action == INIT: if _with.types == VERSION and _with.action == INIT:
self.version = _with.data self.version = _with.data
self.pspec.update_history(self.date, self.version)
self.pspec.write() self.pspec.write()
self.actions.name = self.name self.actions.name = self.name
self.actions.write() self.actions.write()