exclude ve exclude-from ne branch ne de trunk için çalışmıyor çünkü

@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
This commit is contained in:
S.Çağlar Onur
2007-03-19 20:30:39 +00:00
parent b5ff8f8d3f
commit 5c800c6be5
+3
View File
@@ -775,6 +775,9 @@ expanded to package names.
packages.extend(ctx.componentdb.get_union_packages(name, walk=True)) packages.extend(ctx.componentdb.get_union_packages(name, walk=True))
packages.extend(self.args) packages.extend(self.args)
if packages = []:
packages = ctx.installdb.list_installed()
if ctx.get_option('exclude_from'): if ctx.get_option('exclude_from'):
packages = self.exclude_from(packages) packages = self.exclude_from(packages)