add patch to fix kickstart parsing

epel9
Dennis Gilmore 11 years ago
parent 99dd5deeb5
commit a054092808

@ -0,0 +1,41 @@
From 049ab0dd94544bb0770defa54b1322812e6d3082 Mon Sep 17 00:00:00 2001
From: Dennis Gilmore <dennis@ausil.us>
Date: Mon, 4 Aug 2014 05:02:08 -0500
Subject: [PATCH] correctly call pykickstarts makeVersion
---
builder/kojid | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/builder/kojid b/builder/kojid
index b23e9ce..2451ea6 100755
--- a/builder/kojid
+++ b/builder/kojid
@@ -2387,9 +2387,9 @@ class ImageTask(BaseTaskHandler):
# may not be a problem if the included kickstarts are present
# in the repository we checked out.
if opts.get('ksversion'):
- version = ksparser.makeVersion(ksparser.stringToVersion(opts['ksversion']))
+ version = ksparser.version.makeVersion(ksparser.stringToVersion(opts['ksversion']))
else:
- version = ksparser.makeVersion()
+ version = ksparser.version.makeVersion()
self.ks = ksparser.KickstartParser(version)
try:
self.ks.readKickstart(kspath)
@@ -2768,10 +2768,10 @@ class OzImageTask(BaseTaskHandler):
# macros, Oz will fail because it can only handle flat files.
# We require users to flatten their kickstart file.
if self.opts.get('ksversion'):
- version = ksparser.makeVersion(
+ version = ksparser.version.makeVersion(
ksparser.stringToVersion(self.opts['ksversion']))
else:
- version = ksparser.makeVersion()
+ version = ksparser.version.makeVersion()
ks = ksparser.KickstartParser(version)
self.logger.debug('attempting to read kickstart: %s' % kspath)
try:
--
2.0.4

@ -2,7 +2,7 @@
Name: koji Name: koji
Version: 1.9.0 Version: 1.9.0
Release: 5%{?dist} Release: 6%{?dist}
License: LGPLv2 and GPLv2+ License: LGPLv2 and GPLv2+
# koji.ssl libs (from plague) are GPLv2+ # koji.ssl libs (from plague) are GPLv2+
Summary: Build system tools Summary: Build system tools
@ -21,7 +21,7 @@ Patch9: 0008-bump-install-timeout-to-2-hours.patch
Patch10: 0001-refactor-image-build-handlers-in-kojid.patch Patch10: 0001-refactor-image-build-handlers-in-kojid.patch
Patch11: 0002-refactor-do_images.patch Patch11: 0002-refactor-do_images.patch
Patch12: 0003-add-raw-xz-option.patch Patch12: 0003-add-raw-xz-option.patch
Patch13: 0001-correctly-call-pykickstarts-makeVersion.patch
Source: https://fedorahosted.org/released/koji/koji-%{version}.tar.bz2 Source: https://fedorahosted.org/released/koji/koji-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@ -150,6 +150,7 @@ koji-web is a web UI to the Koji system.
%patch10 -p1 %patch10 -p1
%patch11 -p1 %patch11 -p1
%patch12 -p1 %patch12 -p1
%patch13 -p1
%build %build
@ -253,6 +254,9 @@ if [ $1 = 0 ]; then
fi fi
%changelog %changelog
* Mon Aug 04 2014 Dennis Gilmore <dennis@ausil.us> - 1.9.0-6
- add patch to fix kickstart parsing
* Mon Aug 04 2014 Dennis Gilmore <dennis@ausil.us> - 1.9.0-5 * Mon Aug 04 2014 Dennis Gilmore <dennis@ausil.us> - 1.9.0-5
- add upstream patches for better docker support - add upstream patches for better docker support

Loading…
Cancel
Save