From 5c800c6be53c4520cb0f109b6a71d53fb192bb0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=2E=C3=87a=C4=9Flar=20Onur?= Date: Mon, 19 Mar 2007 20:30:39 +0000 Subject: [PATCH] =?UTF-8?q?exclude=20ve=20exclude-from=20ne=20branch=20ne?= =?UTF-8?q?=20de=20trunk=20i=C3=A7in=20=C3=A7al=C4=B1=C5=9Fm=C4=B1yor=20?= =?UTF-8?q?=C3=A7=C3=BCnk=C3=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @operations.py ... def upgrade(A): upgrade_pkg_names(A) def upgrade_pkg_names(A = []): """Re-installs packages from the repository, trying to perform a minimum or maximum number of upgrades according to options.""" ignore_build = ctx.get_option('ignore_build_no') security_only = ctx.get_option('security_only') if not A: # if A is empty, then upgrade all packages A = ctx.installdb.list_installed() ... A boş ise tüm paketleri güncellenecek kabul ediyor fakat; @cli/commands.py / Upgrade ... packages = [] if components: for name in components: if ctx.componentdb.has_component(name): packages.extend(ctx.componentdb.get_union_packages(name, walk=True)) packages.extend(self.args) if ctx.get_option('exclude_from'): packages = self.exclude_from(packages) if ctx.get_option('exclude'): patterns = ctx.get_option('exclude') packages = self.exclude(packages, patterns) ... "pisi up --exclude openoffice" kullanımında packages her zaman [] dönüyor ve exclude/exclude_from fonksiyonlarına argümanlar gitmiyor --- pisi/cli/commands.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pisi/cli/commands.py b/pisi/cli/commands.py index ae05fe3c..6b0f22d6 100644 --- a/pisi/cli/commands.py +++ b/pisi/cli/commands.py @@ -775,6 +775,9 @@ expanded to package names. packages.extend(ctx.componentdb.get_union_packages(name, walk=True)) packages.extend(self.args) + if packages = []: + packages = ctx.installdb.list_installed() + if ctx.get_option('exclude_from'): packages = self.exclude_from(packages)