[mock PATCH 1/5] configs: s390x is legal host arch for s390
by Dan Horák
Signed-off-by: Dan Horák <dan(a)danny.cz>
---
etc/mock/fedora-rawhide-s390.cfg | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/etc/mock/fedora-rawhide-s390.cfg b/etc/mock/fedora-rawhide-s390.cfg
index 53ef3f1..1389717 100644
--- a/etc/mock/fedora-rawhide-s390.cfg
+++ b/etc/mock/fedora-rawhide-s390.cfg
@@ -1,6 +1,6 @@
config_opts['root'] = 'fedora-rawhide-s390'
config_opts['target_arch'] = 's390'
-config_opts['legal_host_arches'] = ('s390',)
+config_opts['legal_host_arches'] = ('s390', 's390x')
config_opts['chroot_setup_cmd'] = 'install @buildsys-build'
config_opts['dist'] = 'rawhide' # only useful for --resultdir variable subst
config_opts['extra_chroot_dirs'] = [ '/run/lock', ]
--
1.9.3
8 years, 9 months
[PATCH 1/3] fedpkg: Show full exception if verbose
by Till Maas
---
src/fedpkg/__main__.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/fedpkg/__main__.py b/src/fedpkg/__main__.py
index c64f61e..4650040 100644
--- a/src/fedpkg/__main__.py
+++ b/src/fedpkg/__main__.py
@@ -70,6 +70,8 @@ def main():
pass
except Exception, e:
log.error('Could not execute %s: %s' % (client.args.command.__name__, e))
+ if client.args.v:
+ raise
sys.exit(1)
if __name__ == "__main__":
--
1.8.3.1
8 years, 10 months
using iterators to reduce memory use
by Mike McLean
These changes cause the hub to use generators for some potentially large
queries internally. The point is to reduce memory usage.
In the case that a large query is returned via rpc, the marshaller has
been extended to handle generators. The marshaller will still create a
giant pile of xml, but we at least still save the memory for the
original data.
I also have some work on an iterating marshaller that will not keep the
entire xml return in memory, but that's a bit more complicated, so I'm
going to leave that for another day.
There are other cases (e.g. repo_init) where we have very large queries
internally. In these cases, this patch set will result in significant
memory savings.
8 years, 10 months
[PATCH 0/2] Allow rpkg to use custom source metadata file and format
by Pat Riehecky
From: Pat Riehecky <riehecky(a)fnal.gov>
Over at the CentOS project they are looking into an rpkg based tool,
but due to the hard coded filename for external sourecs, a lot of code
is duplicated.
The attached patch preserves the existing behavior, but allows a hook
into the 'sources' function so that other metadata files can be consulted.
The format of the url in the CentOS structure is also different. However,
I've not (yet?) taken a stab at making that customizable.
Pat Riehecky (2):
Allow custom 'sources' metadata file
Added optional 'valsep' for metadata files not seperated by ' '
src/pyrpkg/__init__.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
8 years, 11 months
[koji PATCH] use createrepo_c binary when available
by Dan Horák
---
builder/kojid | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/builder/kojid b/builder/kojid
index aece387..600b861 100755
--- a/builder/kojid
+++ b/builder/kojid
@@ -3694,7 +3694,10 @@ class CreaterepoTask(BaseTaskHandler):
def create_local_repo(self, rinfo, arch, pkglist, groupdata, oldrepo):
koji.ensuredir(self.outdir)
- cmd = ['/usr/bin/createrepo', '-vd', '-o', self.outdir]
+ crbin = '/usr/bin/createrepo_c'
+ if not os.path.isfile(crbin):
+ crbin = '/usr/bin/createrepo'
+ cmd = [crbin, '-vd', '-o', self.outdir]
if pkglist is not None:
cmd.extend(['-i', pkglist])
if os.path.isfile(groupdata):
--
1.9.3
8 years, 11 months