summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2006-08-10 15:45:30 +0000
committerJeremy Katz <katzj@redhat.com>2006-08-10 15:45:30 +0000
commit48383b3d8991adffb3076dff9cbcd763fe851152 (patch)
treebce7edb7405e122dd140124944fc4f600c7cf670 /scripts
parent6dfa5ba3f84ef042bc9fd2281664d38e579f2d1c (diff)
2006-08-10 Jeremy Katz <katzj@redhat.com>
* scripts/pkgorder: Adjust for how distill is calling pkgorder for the RHEL trees (#201923)
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/pkgorder4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/pkgorder b/scripts/pkgorder
index 7f79b950e..b56941e90 100755
--- a/scripts/pkgorder
+++ b/scripts/pkgorder
@@ -142,8 +142,10 @@ if __name__ == "__main__":
# print out kernel related packages first
if os.path.isdir("%s/%s/RPMS" % (toppath, product)):
printMatchingPkgs("%s/%s/RPMS/%s" % (toppath, product, "kernel-*"))
- else:
+ elif os.path.isdir("%s/%s" %(toppath, product)):
printMatchingPkgs("%s/%s/%s" % (toppath, product, "kernel-*"))
+ else:
+ printMatchingPkgs("%s/%s" % (toppath, "kernel-*"))
testpath = "/tmp/pkgorder-%d" %(os.getpid(),)
os.system("mkdir -p %s/var/lib/rpm" %(testpath,))