add the patches

epel9
Dennis Gilmore 13 years ago
parent 9028b35a62
commit 90075b79e8

@ -0,0 +1,63 @@
From 19de74773d1e946c73161ac0d819812613463e47 Mon Sep 17 00:00:00 2001
From: Mike McLean <mikem@redhat.com>
Date: Wed, 6 Jun 2012 18:47:53 -0400
Subject: [PATCH 03/22] in taginfo command, avoid passing (recently added)
event opts unless needed (otherwise we get an error
from older servers on plain taginfo commands)
---
cli/koji | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/cli/koji b/cli/koji
index c292f0f..01ca322 100755
--- a/cli/koji
+++ b/cli/koji
@@ -4104,13 +4104,15 @@ def anon_handle_taginfo(options, session, args):
parser.error(_("Please specify a tag"))
assert False
activate_session(session)
- event = koji.util.eventFromOpts(session, options) or {}
+ event = koji.util.eventFromOpts(session, options)
+ event_opts = {}
if event:
event['timestr'] = time.asctime(time.localtime(event['ts']))
print "Querying at event %(id)i (%(timestr)s)" % event
+ event_opts['event'] = event['id']
perms = dict([(p['id'], p['name']) for p in session.getAllPerms()])
for tag in args:
- info = session.getTag(tag, event=event.get('id'))
+ info = session.getTag(tag, **event_opts)
if info is None:
print "No such tag: %s\n" % tag
continue
@@ -4124,8 +4126,8 @@ def anon_handle_taginfo(options, session, args):
if session.mavenEnabled():
print "Maven support?: %s" % (info['maven_support'] and 'yes' or 'no')
print "Include all Maven archives?: %s" % (info['maven_include_all'] and 'yes' or 'no')
- dest_targets = session.getBuildTargets(destTagID=info['id'], event=event.get('id'))
- build_targets = session.getBuildTargets(buildTagID=info['id'], event=event.get('id'))
+ dest_targets = session.getBuildTargets(destTagID=info['id'], **event_opts)
+ build_targets = session.getBuildTargets(buildTagID=info['id'], **event_opts)
repos = {}
if not event:
for target in dest_targets + build_targets:
@@ -4149,13 +4151,13 @@ def anon_handle_taginfo(options, session, args):
print "Targets that build from this tag:"
for target in build_targets:
print " %s" % target['name']
- external_repos = session.getTagExternalRepos(tag_info=info['id'], event=event.get('id'))
+ external_repos = session.getTagExternalRepos(tag_info=info['id'], **event_opts)
if external_repos:
print "External repos:"
for rinfo in external_repos:
print " %(priority)3i %(external_repo_name)s (%(url)s)" % rinfo
print "Inheritance:"
- for parent in session.getInheritanceData(tag, event=event.get('id')):
+ for parent in session.getInheritanceData(tag, **event_opts):
flags = ''
for code,expr in (
('M',parent['maxdepth'] is not None),
--
1.7.11.4

@ -0,0 +1,26 @@
From 79352bb36675888d765b2a1eef970ded459bcbc5 Mon Sep 17 00:00:00 2001
From: Dennis Gilmore <dennis@ausil.us>
Date: Fri, 31 Aug 2012 00:13:16 -0500
Subject: [PATCH 22/22] only try to make /dev/urandom if it doesnt already
exist
---
builder/kojid | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/builder/kojid b/builder/kojid
index 92d40f1..58720b4 100755
--- a/builder/kojid
+++ b/builder/kojid
@@ -1779,7 +1779,7 @@ class ImageTask(BaseTaskHandler):
"Could not create loopback device files: %s" % parseStatus(rv, '"%s"' % cmd)
# Create /dev/urandom
- cmd = 'mknod /dev/urandom c 1 9'
+ cmd = '[ ! -e /dev/urandom ] && (mknod /dev/urandom c 1 9)'
rv = broot.mock(['--chroot', cmd])
if rv:
broot.expire()
--
1.7.11.4
Loading…
Cancel
Save