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>
* pisi/scenarioapi/pspec.py: AnyDependency support added to
with_dependencies() method. Simply give AnyDependency list as an
+4 -4
View File
@@ -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()