commit cad3822f4c0bba45f379a5b5147c18e5cff4101b Author: Pierre-Yves Chibon pingou@pingoured.fr Date: Thu Jun 2 10:58:30 2011 +0200
Implement the logic to orphan/retire all branches
pkgdb.py | 20 ++++++++++++-------- 1 files changed, 12 insertions(+), 8 deletions(-) --- diff --git a/pkgdb.py b/pkgdb.py index 06a7601..5a42f41 100755 --- a/pkgdb.py +++ b/pkgdb.py @@ -545,14 +545,16 @@ def orphan_package(packagename, branch='devel', allpkgs=False,
for pkg in pkgs: if branch == "all": - #TODO: implement this feature - print "logic not implemented yet" + branches = _get_active_branches() + for branch in branches: + _orphan_one_package(pkg, branch, username, password) else: _orphan_one_package(pkg, branch, username, password) else: if branch == "all": - #TODO: implement this feature - print "logic not implemented yet" + branches = _get_active_branches() + for branch in branches: + _orphan_one_package(pkg, branch, username, password) else: _orphan_one_package(packagename, branch, username, password)
@@ -581,14 +583,16 @@ def retire_package(packagename, branch='devel', allpkgs=False,
for pkg in pkgs: if branch == "all": - #TODO: implement this feature - print "logic not implemented yet" + branches = _get_active_branches() + for branch in branches: + _orphan_one_package(pkg, branch, username, password) else: _retire_one_package(pkg, branch, username, password) else: if branch == "all": - #TODO: implement this feature - print "logic not implemented yet" + branches = _get_active_branches() + for branch in branches: + _orphan_one_package(pkg, branch, username, password) else: _retire_one_package(packagename, branch, username, password)
packagedb-cli-commits@lists.stg.fedorahosted.org