Hello,
is usual, openeSUSE 10.3 runs out of maintenance and I will remove all repos
building against it in OBS.
openSUSE:10.3 project has been moved to DISCONTINUED: namespace as announced a
while ago.
bye
adrian
--
Adrian Schroeter
SUSE Linux Products GmbH
email: adrian(a)suse.de
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse-buildservice+help(a)opensuse.org
osc help lists commands alphabetically. Please, sort them by topic as
rpm, zypper, and similar tools do.
[Yes, svn also sorts alphabetically, but that list is not that huge.]
--
Karl Eichwalder
R&D / Documentation
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg)
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse-buildservice+help(a)opensuse.org
Hi,
$ osc api /build/home:michal-m/openSUSE_11.0/x86_64/nafe/_buildinfo >t1
$ osc api -m POST -d 'Name: test' \
/build/home:michal-m/openSUSE_11.0/x86_64/nafe/_buildinfo >t2
$ diff -u t[12]
--- t1 2009-09-08 15:56:54.000000000 +0200
+++ t2 2009-09-08 15:56:57.000000000 +0200
@@ -1,13 +1,5 @@
<buildinfo project="home:michal-m" repository="openSUSE_11.0"
package="nafe" downloadurl="http://download.opensuse.org/repositories">
<arch>x86_64</arch>
- <srcmd5>4f263493abe82e1f59603b5a5642b4a0</srcmd5>
- <verifymd5>4f263493abe82e1f59603b5a5642b4a0</verifymd5>
- <rev>2</rev>
- <specfile>nafe.spec</specfile>
- <file>nafe.spec</file>
- <versrel>0.1-2</versrel>
- <bcnt>2</bcnt>
- <release>2.2</release>
<debuginfo>0</debuginfo>
<bdep name="aaa_base" preinstall="1" runscripts="1" notmeta="1"
version="11.0" release="79.1" arch="x86_64" project="openSUSE:11.0"
repository="standard" />
<bdep name="acl" preinstall="1" notmeta="1" version="2.2.45"
release="40.1" arch="x86_64" project="openSUSE:11.0"
repository="standard" />
Because of the missing <release>2.2</release> element, osc doesn't
substitute release numbers when building locally. Should osc work around
this (get the buildinfo a second time to find out the release) or should
the backend be fixed (bs_repserver, function getbuildinfo(), that
doesn't fetch the required pieces when called from getbuildinfo_post())?
Michal
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse-buildservice+help(a)opensuse.org
From 828ec92050a45b9a2b281abbffc6b19e570bb897 Mon Sep 17 00:00:00 2001
From: Danny Kukawka <danny.kukawka(a)web.de>
Date: Fri, 30 Apr 2010 17:13:21 +0200
Subject: [PATCH] make sure global option -A works too in a checked out package
Make sure global option -A works too in a checked out package.
Always check if -A was passed to command line and use it
instead of the package/project dir information.
Signed-off-by: Danny Kukawka <danny.kukawka(a)web.de>
---
osc/commandline.py | 101 +++++++++++++++++++++++----------------------------
1 files changed, 46 insertions(+), 55 deletions(-)
diff --git a/osc/commandline.py b/osc/commandline.py
index 4a61646..057edc5 100644
--- a/osc/commandline.py
+++ b/osc/commandline.py
@@ -149,6 +149,12 @@ class Osc(cmdln.Cmdln):
doc = doc.rstrip() + '\n' # trim down trailing space
return self._str(doc)
+ def get_api_url(self):
+ localdir = os.getcwd()
+ if (is_package_dir(localdir) or is_project_dir(localdir)) and not self.options.apiurl:
+ return store_read_apiurl(os.curdir)
+ else:
+ return conf.config['apiurl']
# overridden from class Cmdln() to use config variables in help texts
def _help_preprocess(self, help, cmdname):
@@ -282,11 +288,11 @@ class Osc(cmdln.Cmdln):
dir = os.getcwd()
if is_project_dir(dir):
project = store_read_project(dir)
- apiurl = store_read_apiurl(dir)
elif is_package_dir(dir):
project = store_read_project(dir)
package = store_read_package(dir)
- apiurl = store_read_apiurl(dir)
+
+ apiurl = self.get_api_url()
if not project:
raise oscerr.WrongArgs('There are no binaries to list above project level.')
@@ -394,7 +400,7 @@ class Osc(cmdln.Cmdln):
project_dir = localdir = os.getcwd()
if is_project_dir(localdir):
project = store_read_project(localdir)
- apiurl = store_read_apiurl(localdir)
+ apiurl = self.get_api_url()
else:
sys.exit('This command must be called in a checked out project.')
patchinfo = None
@@ -743,14 +749,13 @@ class Osc(cmdln.Cmdln):
if len(args) > 0 and len(args) <= 2 and is_project_dir(os.getcwd()):
sys.exit('osc submitrequest from project directory is only working without target specs and for source linked files\n')
- apiurl = conf.config['apiurl']
+ apiurl = self.get_api_url()
if len(args) == 0 and is_project_dir(os.getcwd()):
import cgi
# submit requests for multiple packages are currently handled via multiple requests
# They could be also one request with multiple actions, but that avoids to accepts parts of it.
project = store_read_project(os.curdir)
- apiurl = store_read_apiurl(os.curdir)
sr_ids = []
pi = []
@@ -990,18 +995,17 @@ Please submit there instead, or use --nodevelproject to force direct submission.
if len(args) > 4:
raise oscerr.WrongArgs('Too many arguments.')
+ apiurl = self.get_api_url()
+
if len(args) == 0 and is_package_dir('.') and len(conf.config['getpac_default_project']):
wd = os.curdir
devel_project = store_read_project(wd)
devel_package = package = store_read_package(wd)
- apiurl = store_read_apiurl(wd)
project = conf.config['getpac_default_project']
else:
if len(args) < 3:
raise oscerr.WrongArgs('Too few arguments.')
- apiurl = conf.config['apiurl']
-
devel_project = args[2]
project = args[0]
package = args[1]
@@ -1151,7 +1155,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
if len(args) > max_args:
raise oscerr.WrongArgs('Too many arguments.')
- apiurl = conf.config['apiurl']
+ apiurl = self.get_api_url()
if cmd == 'list':
package = None
@@ -1161,7 +1165,6 @@ Please submit there instead, or use --nodevelproject to force direct submission.
elif not opts.mine and not opts.user:
try:
project = store_read_project(os.curdir)
- apiurl = store_read_apiurl(os.curdir)
package = store_read_package(os.curdir)
except oscerr.NoWorkingCopy:
pass
@@ -1370,20 +1373,19 @@ Please submit there instead, or use --nodevelproject to force direct submission.
osc linktobranch PROJECT PACKAGE
${cmd_option_list}
"""
-
args = slash_split(args)
+ apiurl = self.get_api_url()
+
if len(args) == 0:
wd = os.curdir
project = store_read_project(wd)
package = store_read_package(wd)
- apiurl = store_read_apiurl(wd)
update_local_dir = True
elif len(args) < 2:
raise oscerr.WrongArgs('Too few arguments (required none or two)')
elif len(args) > 2:
raise oscerr.WrongArgs('Too many arguments (required none or two)')
else:
- apiurl = conf.config['apiurl']
project = args[0]
package = args[1]
update_local_dir = False
@@ -2024,13 +2026,12 @@ Please submit there instead, or use --nodevelproject to force direct submission.
${cmd_option_list}
"""
- apiurl = conf.config['apiurl']
+ apiurl = self.get_api_url()
if len(args) == 1:
project = args[0]
elif len(args) == 0:
project = store_read_project('.')
- apiurl = store_read_apiurl('.')
else:
raise oscerr.WrongArgs('Wrong number of arguments')
@@ -2096,7 +2097,9 @@ Please submit there instead, or use --nodevelproject to force direct submission.
args = slash_split(args)
project = package = filename = None
- apiurl = conf.config['apiurl']
+
+ apiurl = self.get_api_url()
+
try:
project = project_dir = args[0]
package = args[1]
@@ -2110,7 +2113,6 @@ Please submit there instead, or use --nodevelproject to force direct submission.
project = store_read_project(localdir)
project_dir = localdir
package = args[0]
- apiurl = store_read_apiurl(localdir)
rev, dummy = parseRevisionOption(opts.revision)
if rev==None:
@@ -2751,7 +2753,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
args = slash_split(args)
- apiurl = conf.config['apiurl']
+ apiurl = self.get_api_url()
if len(args) == 0:
wd = os.curdir
if is_project_dir(wd):
@@ -2767,7 +2769,6 @@ Please submit there instead, or use --nodevelproject to force direct submission.
else:
project = store_read_project(wd)
package = store_read_package(wd)
- apiurl = store_read_apiurl(wd)
elif len(args) < 2:
raise oscerr.WrongArgs('Too few arguments (required none or two)')
elif len(args) > 2:
@@ -2819,9 +2820,9 @@ Please submit there instead, or use --nodevelproject to force direct submission.
${cmd_option_list}
"""
+ apiurl = self.get_api_url()
if args:
- apiurl = conf.config['apiurl']
if len(args) == 1:
project = args[0]
else:
@@ -2829,7 +2830,6 @@ Please submit there instead, or use --nodevelproject to force direct submission.
else:
wd = os.curdir
project = store_read_project(wd)
- apiurl = store_read_apiurl(wd)
print '\n'.join(get_prj_results(apiurl, project, hide_legend=opts.hide_legend, csv=opts.csv, status_filter=opts.status_filter, name_filter=opts.name_filter, repo=opts.repo, arch=opts.arch, vertical=opts.vertical))
@@ -2868,13 +2868,14 @@ Please submit there instead, or use --nodevelproject to force direct submission.
repository = arch = None
+ apiurl = self.get_api_url()
+
if len(args) == 1 and args[0].startswith('http'):
apiurl, project, package, repository, arch = parse_buildlogurl(args[0])
else:
wd = os.curdir
package = store_read_package(wd)
project = store_read_project(wd)
- apiurl = store_read_apiurl(wd)
offset=0
if opts.start:
@@ -3029,6 +3030,8 @@ Please submit there instead, or use --nodevelproject to force direct submission.
if len(args) < 2:
self.print_repos()
+
+ apiurl = self.get_api_url()
if len(args) == 2: # 2
if is_package_dir('.'):
@@ -3036,11 +3039,9 @@ Please submit there instead, or use --nodevelproject to force direct submission.
else:
raise oscerr.WrongArgs('package is not specified.')
project = store_read_project(wd)
- apiurl = store_read_apiurl(wd)
repository = args[0]
arch = args[1]
elif len(args) == 4:
- apiurl = conf.config['apiurl']
project = args[0]
package = args[1]
repository = args[2]
@@ -3098,24 +3099,23 @@ Please submit there instead, or use --nodevelproject to force direct submission.
if len(args) > 5:
raise oscerr.WrongArgs('Too many arguments.')
+ apiurl = self.get_api_url()
+
if len(args) < 3: # 2
if is_package_dir('.'):
packages = [store_read_package(wd)]
elif not is_project_dir('.'):
raise oscerr.WrongArgs('Project and package is not specified.')
project = store_read_project(wd)
- apiurl = store_read_apiurl(wd)
repository = args[0]
arch = args[1]
if len(args) == 3:
- apiurl = conf.config['apiurl']
project = args[0]
repository = args[1]
arch = args[2]
if len(args) == 4:
- apiurl = conf.config['apiurl']
project = args[0]
packages = [args[1]]
repository = args[2]
@@ -3169,15 +3169,15 @@ Please submit there instead, or use --nodevelproject to force direct submission.
if len(args) > 5:
raise oscerr.WrongArgs('Too many arguments.')
+ apiurl = self.get_api_url()
+
if len(args) < 4: # 2 or 3
package = store_read_package(wd)
project = store_read_project(wd)
- apiurl = store_read_apiurl(wd)
repository = args[0]
arch = args[1]
if len(args) > 3 and len(args) < 6: # 4 or 5
- apiurl = conf.config['apiurl']
project = args[0]
package = args[1]
repository = args[2]
@@ -3230,14 +3230,14 @@ Please submit there instead, or use --nodevelproject to force direct submission.
if len(args) > 4:
raise oscerr.WrongArgs('Too many arguments.')
+ apiurl = self.get_api_url()
+
if len(args) == 2:
package = store_read_package(wd)
project = store_read_project(wd)
- apiurl = store_read_apiurl(wd)
repository = args[0]
arch = args[1]
elif len(args) == 4:
- apiurl = conf.config['apiurl']
project = args[0]
package = args[1]
repository = args[2]
@@ -3258,13 +3258,12 @@ Please submit there instead, or use --nodevelproject to force direct submission.
${cmd_option_list}
"""
- apiurl = conf.config['apiurl']
+ apiurl = self.get_api_url()
if len(args) == 1:
project = args[0]
elif len(args) == 0:
project = store_read_project('.')
- apiurl = store_read_apiurl('.')
else:
raise oscerr.WrongArgs('Wrong number of arguments')
@@ -3564,8 +3563,9 @@ Please submit there instead, or use --nodevelproject to force direct submission.
if len(args) < 2 and is_package_dir('.'):
self.print_repos()
+ apiurl = self.get_api_url()
+
if len(args) == 4:
- apiurl = conf.config['apiurl']
project = args[0]
package = args[1]
repository = args[2]
@@ -3576,7 +3576,6 @@ Please submit there instead, or use --nodevelproject to force direct submission.
project = store_read_project(wd)
repository = args[0]
arch = args[1]
- apiurl = store_read_apiurl(wd)
else:
raise oscerr.WrongArgs('Wrong number of arguments')
@@ -3608,14 +3607,14 @@ Please submit there instead, or use --nodevelproject to force direct submission.
if len(args) < 2 and (is_project_dir('.') or is_package_dir('.')):
self.print_repos()
+ apiurl = self.get_api_url()
+
if len(args) == 4:
- apiurl = conf.config['apiurl']
project = args[0]
package = args[1]
repository = args[2]
arch = args[3]
elif len(args) == 3:
- apiurl = conf.config['apiurl']
project = args[0]
package = None # skipped = prj
repository = args[1]
@@ -3629,7 +3628,6 @@ Please submit there instead, or use --nodevelproject to force direct submission.
project = store_read_project(wd)
repository = args[0]
arch = args[1]
- apiurl = store_read_apiurl(wd)
else:
raise oscerr.WrongArgs('Wrong number of arguments')
@@ -3662,17 +3660,17 @@ Please submit there instead, or use --nodevelproject to force direct submission.
"""
args = slash_split(args)
+ apiurl = self.get_api_url()
+
if len(args) == 0:
wd = os.curdir
project = store_read_project(wd)
package = store_read_package(wd)
- apiurl = store_read_apiurl(wd)
elif len(args) < 2:
raise oscerr.WrongArgs('Too few arguments (required none or two)')
elif len(args) > 2:
raise oscerr.WrongArgs('Too many arguments (required none or two)')
else:
- apiurl = conf.config['apiurl']
project = args[0]
package = args[1]
@@ -3856,7 +3854,8 @@ Please submit there instead, or use --nodevelproject to force direct submission.
"""
args = slash_split(args)
- apiurl = conf.config['apiurl']
+
+ apiurl = self.get_api_url()
if len(args) < 1 and is_package_dir('.'):
self.print_repos()
@@ -3870,7 +3869,6 @@ Please submit there instead, or use --nodevelproject to force direct submission.
if is_package_dir(os.getcwd()):
project = store_read_project(os.curdir)
package = store_read_package(os.curdir)
- apiurl = store_read_apiurl(os.curdir)
repository = args[0]
architecture = args[1]
else:
@@ -3879,7 +3877,6 @@ Please submit there instead, or use --nodevelproject to force direct submission.
if is_package_dir(os.getcwd()):
project = store_read_project(os.curdir)
package = store_read_package(os.curdir)
- apiurl = store_read_apiurl(os.curdir)
repository = args[0]
else:
sys.exit('Local directory is no checkout package, neither it is specified. ' )
@@ -4013,10 +4010,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
elif opts.all and (opts.bugowner or opts.maintainer):
raise oscerr.WrongOptions('Sorry, \'--all\' and \'--bugowner\' or \'--maintainer\' are mutually exclusive')
- if is_package_dir(os.getcwd()) and not self.options.apiurl:
- apiurl = store_read_apiurl(os.curdir)
- else:
- apiurl = conf.config['apiurl']
+ apiurl = self.get_api_url()
exclude_projects = []
for i in opts.exclude_project or []:
@@ -4695,7 +4689,8 @@ Please submit there instead, or use --nodevelproject to force direct submission.
${cmd_option_list}
"""
- apiurl = conf.config['apiurl']
+ apiurl = self.get_api_url()
+
if len(args) >= 3 and len(args) <= 4:
prj = args[0]
package = target_package = args[1]
@@ -4706,7 +4701,6 @@ Please submit there instead, or use --nodevelproject to force direct submission.
target_prj = prj = args[0]
target_package = package = args[1]
elif is_package_dir(os.getcwd()):
- apiurl = store_read_apiurl(os.getcwd())
target_prj = prj = store_read_project(os.getcwd())
target_package = package = store_read_package(os.getcwd())
else:
@@ -5026,7 +5020,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
${cmd_option_list}
"""
- apiurl = conf.config['apiurl']
+ apiurl = self.get_api_url()
f = None
prj = None
@@ -5034,7 +5028,6 @@ Please submit there instead, or use --nodevelproject to force direct submission.
dir = os.getcwd()
if is_project_dir(dir) or is_package_dir(dir):
prj = store_read_project(dir)
- apiurl = store_read_apiurl(dir)
if len(args) == 1:
prj = args[0]
@@ -5114,10 +5107,8 @@ Please submit there instead, or use --nodevelproject to force direct submission.
if arg and is_package_dir(arg):
apiurl = store_read_apiurl(arg)
- elif is_package_dir(os.getcwd()):
- apiurl = store_read_apiurl(os.getcwd())
- else:
- apiurl = conf.config['apiurl']
+ else:
+ apiurl = self.get_api_url()
user = conf.get_apiurl_usr(apiurl)
--
1.5.6
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse-buildservice+help(a)opensuse.org
From 94b797f6c8ced646aebee720d05ddc09fb3cfc7a Mon Sep 17 00:00:00 2001
From: Danny Kukawka <danny.kukawka(a)web.de>
Date: Wed, 21 Apr 2010 15:20:40 +0200
Subject: [PATCH] added 'osc getbinaries REPOSITORY' to checkout all binaries
Added 'osc getbinaries REPOSITORY' to checkout all binaries
(incl. source package) of a REPOSITORY. New option checks out
all architectures into subdirs named as the arch.
Signed-off-by: Danny Kukawka <danny.kukawka(a)web.de>
---
osc/commandline.py | 110 +++++++++++++++++++++++++++++++++++++++-------------
1 files changed, 83 insertions(+), 27 deletions(-)
diff --git a/osc/commandline.py b/osc/commandline.py
index 09461a1..4ce1109 100644
--- a/osc/commandline.py
+++ b/osc/commandline.py
@@ -3814,6 +3814,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
others even when they are not "published" yet.
usage:
+ osc getbinaries REPOSITORY # works in checked out package (check out all archs in subdirs)
osc getbinaries REPOSITORY ARCHITECTURE # works in checked out package
osc getbinaries PROJECT PACKAGE REPOSITORY ARCHITECTURE
${cmd_option_list}
@@ -3822,7 +3823,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
args = slash_split(args)
apiurl = conf.config['apiurl']
- if len(args) < 2 and is_package_dir('.'):
+ if len(args) < 1 and is_package_dir('.'):
self.print_repos()
if len(args) == 4:
@@ -3839,43 +3840,98 @@ Please submit there instead, or use --nodevelproject to force direct submission.
architecture = args[1]
else:
sys.exit('Local directory is no checkout package, neither it is specified. ' )
+ elif len(args) == 1:
+ if is_package_dir(os.getcwd()):
+ project = store_read_project(os.curdir)
+ package = store_read_package(os.curdir)
+ apiurl = store_read_apiurl(os.curdir)
+ repository = args[0]
+ else:
+ sys.exit('Local directory is no checkout package, neither it is specified. ' )
else:
- raise oscerr.WrongArgs('Need either 2 or 4 arguments')
+ raise oscerr.WrongArgs('Need either 1, 2 or 4 arguments')
# Get package list
- binaries = get_binarylist(apiurl,
- project, repository, architecture,
- package = package, verbose=True)
+ if len(args) == 1:
+ data = []
+ for repo in get_repos_of_project(apiurl, project):
+ if repo.name == repository:
+ data.append(repo.arch)
+
+ for arch in data:
+ binaries = get_binarylist(apiurl,
+ project, repository, arch,
+ package = package, verbose=True)
+
+ if opts.destdir:
+ print "Creating %s/%s" % (opts.destdir, arch)
+ target_dir = '%s/%s' % (opts.destdir, arch)
+ else:
+ target_dir = '%s' % arch
+
+ if not os.path.isdir(target_dir):
+ os.makedirs(target_dir, 0755)
+
+ if binaries == [ ]:
+ sys.exit('no binaries found. Either the package does not '
+ 'exist or no binaries have been built.')
+
+ for binary in binaries:
+ target_filename = []
+ if os.path.isdir(opts.destdir):
+ target_filename = '%s/%s/%s' % (opts.destdir, arch, binary.name)
+ else:
+ target_filename = '%s/%s' % (arch, binary.name)
- if not os.path.isdir(opts.destdir):
- print "Creating %s" % opts.destdir
- os.makedirs(opts.destdir, 0755)
+ if os.path.exists(target_filename):
+ st = os.stat(target_filename)
+ if st.st_mtime == binary.mtime and st.st_size == binary.size:
+ continue
- if binaries == [ ]:
- sys.exit('no binaries found. Either the package does not '
- 'exist or no binaries have been built.')
+ get_binary_file(apiurl,
+ project,
+ repository, arch,
+ binary.name,
+ package = package,
+ target_filename = target_filename,
+ target_mtime = binary.mtime,
+ progress_meter = not opts.quiet)
- for binary in binaries:
- # skip source rpms
- if not opts.sources and binary.name.endswith('.src.rpm'):
- continue
+ else:
+ binaries = get_binarylist(apiurl,
+ project, repository, architecture,
+ package = package, verbose=True)
+
+ if not os.path.isdir(opts.destdir):
+ print "Creating %s" % opts.destdir
+ os.makedirs(opts.destdir, 0755)
+
+ if binaries == [ ]:
+ sys.exit('no binaries found. Either the package does not '
+ 'exist or no binaries have been built.')
- target_filename = '%s/%s' % (opts.destdir, binary.name)
+ for binary in binaries:
- if os.path.exists(target_filename):
- st = os.stat(target_filename)
- if st.st_mtime == binary.mtime and st.st_size == binary.size:
+ # skip source rpms
+ if not opts.sources and binary.name.endswith('.src.rpm'):
continue
- get_binary_file(apiurl,
- project,
- repository, architecture,
- binary.name,
- package = package,
- target_filename = target_filename,
- target_mtime = binary.mtime,
- progress_meter = not opts.quiet)
+ target_filename = '%s/%s' % (opts.destdir, binary.name)
+
+ if os.path.exists(target_filename):
+ st = os.stat(target_filename)
+ if st.st_mtime == binary.mtime and st.st_size == binary.size:
+ continue
+
+ get_binary_file(apiurl,
+ project,
+ repository, architecture,
+ binary.name,
+ package = package,
+ target_filename = target_filename,
+ target_mtime = binary.mtime,
+ progress_meter = not opts.quiet)
@cmdln.option('-b', '--bugowner', action='store_true',
--
1.5.6
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse-buildservice+help(a)opensuse.org
Is there an ETA when Ubuntu 10.04 is going to be available as a build
target?
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse-buildservice+help(a)opensuse.org
I hope this is a simple question: How does one set up OBS so that it
publishes the distro package repositories. (So that users can easily install
normal distro packages using yast/yum/zypper)?
I would have thought I'd simply have to enable the 'publish' section in the
project config.xml file (via osc meta prj --edit), but that doesn't seem to do
it.
(All my packages are installed from the various distro ISO images)
Thanks.
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse-buildservice+help(a)opensuse.org
Hi,
Currently following hosts seem to have problems (all 3 days job time):
build35/10
build12/1
build14/2
build13/2
build33/6
build37/9
build10/7
build21/16
build10/4
Please fix it.
Thanks.
Johannes
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse-buildservice+help(a)opensuse.org
From ef2d5959fc6f78a88f49420a9d852097010a6b26 Mon Sep 17 00:00:00 2001
From: Danny Kukawka <danny.kukawka(a)web.de>
Date: Wed, 21 Apr 2010 15:58:57 +0200
Subject: [PATCH] get apiurl for 'osc my' from checked out package
Get apiurl for 'osc my' from checked out package if possible.
Make sure that global option -A works to in a checked out
package.
Signed-off-by: Danny Kukawka <danny.kukawka(a)web.de>
---
osc/commandline.py | 13 +++++++++----
1 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/osc/commandline.py b/osc/commandline.py
index 4ce1109..c30c47c 100644
--- a/osc/commandline.py
+++ b/osc/commandline.py
@@ -3978,6 +3978,11 @@ Please submit there instead, or use --nodevelproject to force direct submission.
elif opts.all and (opts.bugowner or opts.maintainer):
raise oscerr.WrongOptions('Sorry, \'--all\' and \'--bugowner\' or \'--maintainer\' are mutually exclusive')
+ if is_package_dir(os.getcwd()) and not self.options.apiurl:
+ apiurl = store_read_apiurl(os.curdir)
+ else:
+ apiurl = conf.config['apiurl']
+
exclude_projects = []
for i in opts.exclude_project or []:
prj = i.split(',')
@@ -3986,7 +3991,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
else:
exclude_projects.extend(prj)
if not opts.user:
- user = conf.get_apiurl_usr(conf.config['apiurl'])
+ user = conf.get_apiurl_usr(apiurl)
else:
user = opts.user
@@ -3997,7 +4002,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
elif type in args_prj:
what = {'project': ''}
elif type in args_sr:
- requests = get_request_list(conf.config['apiurl'], req_who=user, exclude_target_projects=exclude_projects)
+ requests = get_request_list(apiurl, req_who=user, exclude_target_projects=exclude_projects)
for r in requests:
print r.list_view()
return
@@ -4014,7 +4019,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
if opts.all:
role_filter = ''
- res = get_user_projpkgs(conf.config['apiurl'], user, role_filter,
+ res = get_user_projpkgs(apiurl, user, role_filter,
exclude_projects, what.has_key('project'), what.has_key('package'))
request_todo = {}
roles = {}
@@ -4031,7 +4036,7 @@ Please submit there instead, or use --nodevelproject to force direct submission.
roles[i.get('name')] = [p.get('role') for p in i.findall('person') if p.get('userid') == user]
if list_requests:
- requests = get_user_projpkgs_request_list(conf.config['apiurl'], user, projpkgs=request_todo)
+ requests = get_user_projpkgs_request_list(apiurl, user, projpkgs=request_todo)
for r in requests:
print r.list_view()
else:
--
1.5.6
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe(a)opensuse.org
For additional commands, e-mail: opensuse-buildservice+help(a)opensuse.org