Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:dirkmueller:acdc:as_python3_module
salt.17876
revert-add-patch-support-for-allow-vendor-chang...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File revert-add-patch-support-for-allow-vendor-change-opt.patch of Package salt.17876
From 4028fd6e84d882b6dcee695d409c7e1ed6c83bdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Su=C3=A1rez=20Hern=C3=A1ndez?= <psuarezhernandez@suse.com> Date: Wed, 13 Jan 2021 09:36:57 +0000 Subject: [PATCH] Revert "add patch support for allow vendor change option with zypper" This reverts commit 16082f73a7004de53043a2f1bee11754efcc75d7. --- salt/modules/zypperpkg.py | 42 ++++++++++++--------------------------- 1 file changed, 13 insertions(+), 29 deletions(-) diff --git a/salt/modules/zypperpkg.py b/salt/modules/zypperpkg.py index a6c5aa3265..8200adfe24 100644 --- a/salt/modules/zypperpkg.py +++ b/salt/modules/zypperpkg.py @@ -1368,7 +1368,6 @@ def install(name=None, no_recommends=False, root=None, inclusion_detection=False, - novendorchange=True, **kwargs): ''' .. versionchanged:: 2015.8.12,2016.3.3,2016.11.0 @@ -1415,10 +1414,6 @@ def install(name=None, skip_verify Skip the GPG verification check (e.g., ``--no-gpg-checks``) - - novendorchange - Disallow vendor change - version Can be either a version number, or the combination of a comparison operator (<, >, <=, >=, =) and a version number (ex. '>1.2.3-4'). @@ -1568,19 +1563,6 @@ def install(name=None, cmd_install = ['install', '--auto-agree-with-licenses'] cmd_install.append(kwargs.get('resolve_capabilities') and '--capability' or '--name') - if novendorchange: - if __grains__["osrelease_info"][0] > 11: - cmd_install.append("--no-allow-vendor-change") - log.info("Disabling vendor changes") - else: - log.warning("Enabling/Disabling vendor changes is not supported on this Zypper version") - else: - if __grains__["osrelease_info"][0] > 11: - cmd_install.append("--allow-vendor-change") - log.info("Enabling vendor changes") - else: - log.warning("Enabling/Disabling vendor changes is not supported on this Zypper version") - if not refresh: cmd_install.insert(0, '--no-refresh') @@ -1592,6 +1574,7 @@ def install(name=None, cmd_install.extend(fromrepoopt) if no_recommends: cmd_install.append('--no-recommends') + errors = [] # Split the targets into batches of 500 packages each, so that @@ -1717,18 +1700,19 @@ def upgrade(refresh=True, cmd_update.extend(['--from' if dist_upgrade else '--repo', repo]) log.info('Targeting repos: %s', fromrepo) - # TODO: Grains validation should be moved to Zypper class - if __grains__["osrelease_info"][0] > 11: - if novendorchange: - cmd_update.append("--no-allow-vendor-change") - log.info("Disabling vendor changes") + if dist_upgrade: + # TODO: Grains validation should be moved to Zypper class + if __grains__["osrelease_info"][0] > 11: + if novendorchange: + cmd_update.append("--no-allow-vendor-change") + log.info("Disabling vendor changes") + else: + cmd_update.append("--allow-vendor-change") + log.info("Enabling vendor changes") else: - cmd_update.append("--allow-vendor-change") - log.info("Enabling vendor changes") - else: - log.warning( - "Enabling/Disabling vendor changes is not supported on this Zypper version" - ) + log.warning( + "Enabling/Disabling vendor changes is not supported on this Zypper version" + ) if no_recommends: cmd_update.append('--no-recommends') -- 2.29.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor