Fixed repo_version_bumped() ignoring with_version() argument.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user