This commit is contained in:
Faik Uygur
2006-08-20 16:13:53 +00:00
parent bae771e1cc
commit cf77826969
2 changed files with 1 additions and 12 deletions
-6
View File
@@ -64,12 +64,6 @@ class Package:
def version_bump(self, *args):
if args:
if type(args[0]) == tuple:
withs = args[0]
else:
withs = args
for with in withs:
if with.types == CONFLICT and with.action == ADDED:
self.pspec.add_conflicts(with.pkgs)
+1 -6
View File
@@ -53,12 +53,7 @@ def repo_version_bumped(package, *args):
raise Exception(_("Repo does not have package named %s.") % package)
old_file = repodb[package].get_file_name()
if args:
repodb[package].version_bump(args)
else:
repodb[package].version_bump()
repodb[package].version_bump(*args)
os.unlink(os.path.join(consts.repo_path, old_file))
def repo_updated_index():