Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15-SP1
osc-plugin-install
boo#1009432_replace_etc_suse_release_by_os_rele...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File boo#1009432_replace_etc_suse_release_by_os_release.patch of Package osc-plugin-install
--- a/osc-install.py 2017-03-18 03:03:28.000000000 +0100 +++ b/osc-install.py 2018-01-20 13:09:16.987208951 +0100 @@ -62,7 +62,7 @@ # # Osc install prompts you with candidate packages from a list of projects that # build the package for your system. It can discern platform and architecture -# from /etc/SuSE-release and/or your ~/.oscrc build_project setting. +# from /etc/os-release and/or your ~/.oscrc build_project setting. # # Osc install suggests to add repo URLs for newly used projects to the zypper # repository list. This has little importance for osc, but is very @@ -202,8 +202,8 @@ @cmdln.hide(1) @cmdln.alias('in') -@cmdln.option('-p', '--platform', metavar='SUSE_RELEASE', help='platform substring to match. Default: guess platform from /etc/SuSE-Release') -@cmdln.option('-a', '--arch', metavar='ARCH', help='system architecture. Default: guess platform from /etc/SuSE-Release') +@cmdln.option('-p', '--platform', metavar='SUSE_RELEASE', help='platform substring to match. Default: guess platform from /etc/os-release') +@cmdln.option('-a', '--arch', metavar='ARCH', help='system architecture. Default: guess platform from /etc/os-release') @cmdln.option('-f', '--first', action='store_true', help='if multiple projects offer a package, choose the first. Default: Ask user') @cmdln.option('-v', '--verbose', action='store_true', help='babble while working') @cmdln.option('-I', '--no-cache', action='store_true', help='ignore cached packages, always download. Default: check build cache /var/tmp/osbuild-packagecache') @@ -259,7 +259,7 @@ # default_platform = 'openSUSE_12.1' osc_cache = '/var/tmp/osbuild-packagecache' - etc_S_r = '/etc/SuSE-release' + etc_S_r = '/etc/os-release' if len(args) == 1: #{ if re.search('\.rpm$', args[0]): @@ -557,6 +557,7 @@ def _read_system_name(self, file, opts): print("using %s to match build platforms" % (file)) text = open(file).read() + text = text.replace('"', '') a = {} for i in (re.split("[\s_:=\(\)]+", text)): a[i] = 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