diff --git a/pisi/cli/commands.py b/pisi/cli/commands.py index f559c954..31555524 100644 --- a/pisi/cli/commands.py +++ b/pisi/cli/commands.py @@ -331,33 +331,6 @@ specified a package name, it should exist in a specified repository. pisi.api.install(self.args) self.finalize() - -class InstallAvailable(Command): - """Install available packages in the repositories - -Usage: install-available [ ... 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 diff --git a/tools/graphAllDeps.sh b/tools/graphAllDeps.sh new file mode 100755 index 00000000..a4276932 --- /dev/null +++ b/tools/graphAllDeps.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +argNUM=${#} +if [ ${argNUM} -lt 1 ] ; then + echo "At least one repo name needed" + exit 1 +fi + +for x in "$@" ; do + ./pisi-cli graph `./pisi-cli list-available $x | tail -n+3 | xargs` + dot -Tpng pgraph.dot -o ~/packageDEP4${x}.png +done diff --git a/tools/installAllAvailable.sh b/tools/installAllAvailable.sh new file mode 100755 index 00000000..f8b7a4b3 --- /dev/null +++ b/tools/installAllAvailable.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +argNUM=${#} +if [ ${argNUM} -lt 1 ] ; then + echo "At least one repo name needed" + exit 1 +fi +./pisi-cli --ignore-comar install `./pisi-cli list-available $@ | tail -n+3 | xargs`