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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user