[PATCH] Add anaconda-runtime to the package list for buildinstall

Mark McLoughlin markmc at redhat.com
Mon Apr 21 08:35:29 UTC 2008


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 at 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




More information about the Fedora-buildsys-list mailing list