FreeBSD Bugzilla – Attachment 189105 Details for
Bug 224594
sysutils/py-salt: Patch module pkgng to fix pkg.clean and pkg.upgrade
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to fix sysutils/py-salt pkgng execution module for pkg.upgrade and pkg.clean
salt.patch (text/plain), 2.92 KB, created by
Ben Woods
on 2017-12-26 05:16:34 UTC
(
hide
)
Description:
Patch to fix sysutils/py-salt pkgng execution module for pkg.upgrade and pkg.clean
Filename:
MIME Type:
Creator:
Ben Woods
Created:
2017-12-26 05:16:34 UTC
Size:
2.92 KB
patch
obsolete
>Index: sysutils/py-salt/files/patch-salt_modules_pkgng.py >=================================================================== >--- sysutils/py-salt/files/patch-salt_modules_pkgng.py (nonexistent) >+++ sysutils/py-salt/files/patch-salt_modules_pkgng.py (working copy) >@@ -0,0 +1,92 @@ >+--- salt/modules/pkgng.py.orig 2017-10-09 16:37:42 UTC >++++ salt/modules/pkgng.py >+@@ -1154,8 +1154,6 @@ def upgrade(*names, **kwargs): >+ opts += 'n' >+ if not dryrun: >+ opts += 'y' >+- if opts: >+- opts = '-' + opts >+ >+ cmd = _pkg(jail, chroot, root) >+ cmd.append('upgrade') >+@@ -1181,7 +1179,11 @@ def upgrade(*names, **kwargs): >+ return ret >+ >+ >+-def clean(jail=None, chroot=None, root=None): >++def clean(jail=None, >++ chroot=None, >++ root=None, >++ clean_all=False, >++ dryrun=False): >+ ''' >+ Cleans the local cache of fetched remote packages >+ >+@@ -1190,11 +1192,64 @@ def clean(jail=None, chroot=None, root=None): >+ .. code-block:: bash >+ >+ salt '*' pkg.clean >+- salt '*' pkg.clean jail=<jail name or id> >+- salt '*' pkg.clean chroot=/path/to/chroot >++ >++ jail >++ Cleans the package cache in the specified jail >++ >++ CLI Example: >++ >++ .. code-block:: bash >++ >++ salt '*' pkg.clean jail=<jail name or id> >++ >++ chroot >++ Cleans the package cache in the specified chroot (ignored if ``jail`` >++ is specified) >++ >++ root >++ Cleans the package cache in the specified root (ignored if ``jail`` >++ is specified) >++ >++ CLI Example: >++ >++ .. code-block:: bash >++ >++ salt '*' pkg.clean chroot=/path/to/chroot >++ >++ clean_all >++ Clean all packages from the local cache (not just those that have been >++ superseded by newer versions). >++ >++ CLI Example: >++ >++ .. code-block:: bash >++ >++ salt '*' pkg.clean clean_all=True >++ >++ dryrun >++ Dry-run mode. This list of changes to the local cache is always >++ printed, but no changes are actually made. >++ >++ CLI Example: >++ >++ .. code-block:: bash >++ >++ salt '*' pkg.clean dryrun=True >+ ''' >++ opts = '' >++ if clean_all: >++ opts += 'a' >++ if dryrun: >++ opts += 'n' >++ else: >++ opts += 'y' >++ >++ cmd = _pkg(jail, chroot, root) >++ cmd.append('clean') >++ if opts: >++ cmd.append('-' + opts) >+ return __salt__['cmd.run']( >+- _pkg(jail, chroot, root) + ['clean'], >++ cmd, >+ output_loglevel='trace', >+ python_shell=False >+ ) > >Property changes on: sysutils/py-salt/files/patch-salt_modules_pkgng.py >___________________________________________________________________ >Added: fbsd:nokeywords >## -0,0 +1 ## >+yes >\ No newline at end of property >Added: svn:eol-style >## -0,0 +1 ## >+native >\ No newline at end of property >Added: svn:mime-type >## -0,0 +1 ## >+text/plain >\ No newline at end of property
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
christer.edwards
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 224594
: 189105