Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Fedora Build System (http://www.linux-archive.org/fedora-build-system/)
-   -   Add anaconda-runtime to the package list for buildinstall (http://www.linux-archive.org/fedora-build-system/73435-add-anaconda-runtime-package-list-buildinstall.html)

Mark McLoughlin 04-21-2008 08:35 AM

Add anaconda-runtime to the package list for buildinstall
 
With e.g.:

repo --name=rawhide --baseurl=http://foo

%packages
%end

You get:

OSError: Got an error from /usr/lib/anaconda-runtime/buildinstall:

and trying out the buildinstall command directly, you see:

Running buildinstall...
No Match for argument anaconda-runtime
Nothing to download

The issue here is that one of the first things buildinstall
tries to do is install anaconda-runtime from the supplied
repository, so the user must add anaconda-runtime to the
package list or pungi fails.

Automatically add it to the package list rather than
requiring the user to do it.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
---
src/bin/pungi.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/bin/pungi.py b/src/bin/pungi.py
index 91ca403..bcbe6fd 100755
--- a/src/bin/pungi.py
+++ b/src/bin/pungi.py
@@ -77,6 +77,10 @@ def main():

# Actually do work.
if not opts.sourceisos:
+ if opts.do_all or opts.do_buildinstall:
+ # buildinstall requires anaconda-runtime (rh #443371)
+ ksparser.handler.packages.add(["anaconda-runtime"])
+
if opts.do_all or opts.do_gather:
mygather = pypungi.gather.Gather(config, ksparser)
mygather.getPackageObjects()
--
1.5.4.5

--
Fedora-buildsys-list mailing list
Fedora-buildsys-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-buildsys-list


All times are GMT. The time now is 05:11 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.