* ick!
This commit is contained in:
@@ -64,12 +64,6 @@ class Package:
|
|||||||
|
|
||||||
def version_bump(self, *args):
|
def version_bump(self, *args):
|
||||||
if args:
|
if args:
|
||||||
|
|
||||||
if type(args[0]) == tuple:
|
|
||||||
withs = args[0]
|
|
||||||
else:
|
|
||||||
withs = args
|
|
||||||
|
|
||||||
for with in withs:
|
for with in withs:
|
||||||
if with.types == CONFLICT and with.action == ADDED:
|
if with.types == CONFLICT and with.action == ADDED:
|
||||||
self.pspec.add_conflicts(with.pkgs)
|
self.pspec.add_conflicts(with.pkgs)
|
||||||
|
|||||||
@@ -53,12 +53,7 @@ def repo_version_bumped(package, *args):
|
|||||||
raise Exception(_("Repo does not have package named %s.") % package)
|
raise Exception(_("Repo does not have package named %s.") % package)
|
||||||
|
|
||||||
old_file = repodb[package].get_file_name()
|
old_file = repodb[package].get_file_name()
|
||||||
|
repodb[package].version_bump(*args)
|
||||||
if args:
|
|
||||||
repodb[package].version_bump(args)
|
|
||||||
else:
|
|
||||||
repodb[package].version_bump()
|
|
||||||
|
|
||||||
os.unlink(os.path.join(consts.repo_path, old_file))
|
os.unlink(os.path.join(consts.repo_path, old_file))
|
||||||
|
|
||||||
def repo_updated_index():
|
def repo_updated_index():
|
||||||
|
|||||||
Reference in New Issue
Block a user