Make it possible to give package arguments to "pisi configure-pending"
This commit is contained in:
+8
-3
@@ -419,12 +419,17 @@ def generate_pending_order(A):
|
|||||||
|
|
||||||
return order
|
return order
|
||||||
|
|
||||||
def configure_pending():
|
def configure_pending(packages=None):
|
||||||
# start with pending packages
|
# start with pending packages
|
||||||
# configure them in reverse topological order of dependency
|
# configure them in reverse topological order of dependency
|
||||||
installdb = pisi.db.installdb.InstallDB()
|
installdb = pisi.db.installdb.InstallDB()
|
||||||
A = installdb.list_pending()
|
|
||||||
order = generate_pending_order(A)
|
if not packages:
|
||||||
|
packages = installdb.list_pending()
|
||||||
|
else:
|
||||||
|
packages = set(packages) and set(installdb.list_pending())
|
||||||
|
|
||||||
|
order = generate_pending_order(packages)
|
||||||
try:
|
try:
|
||||||
for x in order:
|
for x in order:
|
||||||
if installdb.has_package(x):
|
if installdb.has_package(x):
|
||||||
|
|||||||
@@ -43,4 +43,4 @@ configures those packages.
|
|||||||
def run(self):
|
def run(self):
|
||||||
|
|
||||||
self.init()
|
self.init()
|
||||||
pisi.api.configure_pending()
|
pisi.api.configure_pending(self.args)
|
||||||
|
|||||||
Reference in New Issue
Block a user