diff --git a/ChangeLog b/ChangeLog index 9e10bf4f..befb82fa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2009-12-04 Bahadır Kandemir + * pisi/scenarioapi/package.py: Fixed repo_version_bumped() ignoring + with_version() argument. + 2009-12-04 Bahadır Kandemir * pisi/scenarioapi/pspec.py: AnyDependency support added to with_dependencies() method. Simply give AnyDependency list as an diff --git a/pisi/scenarioapi/package.py b/pisi/scenarioapi/package.py index c4b884d2..d4525557 100644 --- a/pisi/scenarioapi/package.py +++ b/pisi/scenarioapi/package.py @@ -69,12 +69,10 @@ class Package: return os.path.basename(found[0]) def version_bump(self, *args): - self.pspec.update_history(self.date, self.version) - for _with in args: if _with.types == CONFLICT and _with.action == ADDED: self.pspec.add_conflicts(_with.data) - + if _with.types == REQUIRES and _with.action == ADDED: self.pspec.add_requires(_with.data) @@ -89,7 +87,9 @@ class Package: if _with.types == VERSION and _with.action == INIT: self.version = _with.data - + + self.pspec.update_history(self.date, self.version) + self.pspec.write() self.actions.name = self.name self.actions.write()