From b946537ff22df923aa162c3890e5d6e009e3e424 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=2E=C3=87a=C4=9Flar=20Onur?= Date: Mon, 26 Sep 2005 00:09:51 +0000 Subject: [PATCH] =?UTF-8?q?InstallAvailable'da=20birka=C3=A7=20hata=20buld?= =?UTF-8?q?um,=20d=C3=BCzeltmek=20yerine=20exa'n=C4=B1n=20=C3=B6nerdi?= =?UTF-8?q?=C4=9Fi=20y=C3=B6nteme=20ge=C3=A7tim.=20list-available=20=C3=A7?= =?UTF-8?q?=C4=B1kt=C4=B1s=C4=B1'n=C4=B1=20istenilen=20komuta=20veren=20ve?= =?UTF-8?q?=20i=C5=9Fleyen=202=20ufak=20betik=20ile=20durumu=20=C3=A7?= =?UTF-8?q?=C3=B6zmeye=20karar=20verdim...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pisi/cli/commands.py | 27 --------------------------- tools/graphAllDeps.sh | 12 ++++++++++++ tools/installAllAvailable.sh | 8 ++++++++ 3 files changed, 20 insertions(+), 27 deletions(-) create mode 100755 tools/graphAllDeps.sh create mode 100755 tools/installAllAvailable.sh 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`