Patch to allow pkgorder to use external whiteout file...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Its real simple, they add "--whiteout /path/to/some/file" where the
file contains the normal relations one per line _without any line
continuation_, and poof the whiteout in whiteout.py is gone and
something else takes its place.

I hope this might make its way into the mainstream anaconda.

Thanks...james

--- anaconda-10.1.1.37/scripts/pkgorder.delta	2006-10-16
13:39:39.000000000 -0500
+++ anaconda-10.1.1.37/scripts/pkgorder	2006-10-17 13:45:03.000000000 -0500
@@ -126,7 +126,11 @@
            line = "%s-%s-%s.%s.rpm\n" % (pkg['name'], pkg['version'],
                                          pkg['release'], pkg['arch'])
            ofile.write(line)
-
+
+def loadWhiteoutFromFile(whiteoutFilename):
+	whiteoutFH = open(whiteoutFilename, 'r')
+	whiteout = whiteoutFH.read()
+	rpm.addMacro("_dependency_whiteout", whiteout)


# set PKGORDER_DEBUG to get rpm debugging
@@ -150,6 +154,9 @@
    elif arg == "--product":
        productPath = sys.argv[n]
        n += 1
+    elif arg == "--whiteout":
+        loadWhiteoutFromFile(sys.argv[n])
+        n += 1
    else:
        args.append(arg)


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux