install-available komutu, bir depodaki tüm paketleri kurmaya yarıyor...
This commit is contained in:
@@ -332,6 +332,32 @@ specified a package name, it should exist in a specified repository.
|
||||
self.finalize()
|
||||
|
||||
|
||||
class InstallAvailable(Command):
|
||||
"""Install available packages in the repositories
|
||||
|
||||
Usage: install-available [ <repo1> <repo2> ... repon ]
|
||||
|
||||
Install all packages in the given repository.
|
||||
"""
|
||||
__metaclass__ = autocommand
|
||||
|
||||
def __init__(self):
|
||||
super(InstallAvailable, self).__init__()
|
||||
|
||||
name = ("install-available", "ia")
|
||||
|
||||
def run(self):
|
||||
from pisi import packagedb
|
||||
|
||||
self.init()
|
||||
|
||||
# iterate over repos
|
||||
for repo in ctx.repodb.list():
|
||||
pkg_db = packagedb.get_db(repo)
|
||||
# get all packages from repo and install them
|
||||
pisi.api.install(pkg_db.list_packages())
|
||||
self.finalize()
|
||||
|
||||
class Upgrade(PackageOp):
|
||||
"""Upgrade PISI packages
|
||||
|
||||
|
||||
Reference in New Issue
Block a user