commit a9087fdaf7b225018bbaa01959f949f33f5cef15
Author: Pierre-Yves Chibon <pingou(a)pingoured.fr>
Date: Thu Jan 10 22:50:00 2013 +0100
Always only retrieve the active branch of the package of interest
pkgdb-cli | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/pkgdb-cli b/pkgdb-cli
index 577d423..9bed508 100755
--- a/pkgdb-cli
+++ b/pkgdb-cli
@@ -814,7 +814,7 @@ def orphan_package(packagename, branch='devel', allpkgs=False,
if packagename is not None and not '*' in packagename:
if branch == "all":
log.debug("Orphan {0} in all branches".format(packagename))
- branches = _get_active_branches()
+ branches = _get_active_branches(packagename)
for branch in branches:
_update_owner_one_package(pkg, branch, action="orphan",
username=username, password=password)
@@ -835,7 +835,7 @@ def orphan_package(packagename, branch='devel', allpkgs=False,
log.debug("Orphan all packages")
if branch == "all":
log.debug("Orphan in all branches")
- branches = _get_active_branches()
+ branches = _get_active_branches(pkg)
for branch in branches:
_update_owner_one_package(pkg, branch, action="orphan",
username=username, password=password)
@@ -848,7 +848,7 @@ def orphan_package(packagename, branch='devel', allpkgs=False,
found = True
if branch == "all":
log.debug("Orphan in all branches")
- branches = _get_active_branches()
+ branches = _get_active_branches(pkg)
for branch in branches:
_update_owner_one_package(pkg, branch, action="orphan",
username=username, password=password)
@@ -881,7 +881,7 @@ def unorphan_package(packagename, branch='devel', owner=None,
if branch == "all":
log.debug("Orphan in all branches")
- branches = _get_active_branches()
+ branches = _get_active_branches(packagename)
for branch in branches:
_update_owner_one_package(packagename, branch, action="unorphan",
username=username, password=password, owner=owner)
@@ -916,7 +916,7 @@ def retire_package(packagename, branch='devel', allpkgs=False,
for pkg in pkgs:
if branch == "all":
log.debug("Retire in all branches")
- branches = _get_active_branches()
+ branches = _get_active_branches(pkg)
for branch in branches:
_update_owner_one_package(pkg, branch, action="orphan",
username=username, password=password)
@@ -925,7 +925,7 @@ def retire_package(packagename, branch='devel', allpkgs=False,
else:
if branch == "all":
log.debug("Retire in all branches")
- branches = _get_active_branches()
+ branches = _get_active_branches(pkg)
for branch in branches:
_update_owner_one_package(pkg, branch, action="orphan",
username=username, password=password)