diff options
author | Jeremy Katz <katzj@redhat.com> | 2002-04-19 06:28:35 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2002-04-19 06:28:35 +0000 |
commit | 8e7a9bc91b98a02e41dd6d53e8a2027c482346a8 (patch) | |
tree | 1c94bb1caace167e96375666ad0cc9467e83d471 /scripts/splitdistro | |
parent | 34e94e67312be97452e79939ae7104afae3c041b (diff) | |
download | anaconda-8e7a9bc91b98a02e41dd6d53e8a2027c482346a8.tar.gz anaconda-8e7a9bc91b98a02e41dd6d53e8a2027c482346a8.tar.xz anaconda-8e7a9bc91b98a02e41dd6d53e8a2027c482346a8.zip |
more merging fun from the hampton branch. I'm pretty sure this doesn't
work now, at least in gui. text mode might, though
Diffstat (limited to 'scripts/splitdistro')
-rwxr-xr-x | scripts/splitdistro | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/scripts/splitdistro b/scripts/splitdistro index 01d0089f4..778f8e4ce 100755 --- a/scripts/splitdistro +++ b/scripts/splitdistro @@ -4,9 +4,9 @@ disc2dirs = [ "preview" ] # These files appear on all binary CDs -jointfiles = [ "COPYING", "RPM-GPG-KEY", "README", "autorun" ] +jointfiles = [ "beta_eula.txt", "RPM-GPG-KEY", "README", "autorun" ] -targetSize = 640 * 1024 * 1024 +targetSize = 640 * 1024.0 * 1024.0 # Leave about 1.2MB of space on the disc fudgeFactor = 1.2 * 1024 * 1024 @@ -40,6 +40,7 @@ def moveFiles(srcDir, destDir, files): def excessFiles(path, fileList, maxSize): total = 0 moveList = [] + found = 0 for fns in fileList: if type(fns) == types.StringType: @@ -54,6 +55,9 @@ def excessFiles(path, fileList, maxSize): total = total + size else: # once we're done, we're done + if found == 0: +# print "straw was %s" % (fns,) + found = 1 total = maxSize moveList.extend(fns) @@ -187,6 +191,7 @@ disc2pkgs = excessFiles(distDir + "/RedHat/RPMS", binPkgList, moveFiles("%s/RedHat/RPMS" % disc1Dir, "%s/RedHat/RPMS" % disc2Dir, disc2pkgs); +disc1Size = spaceUsed(disc1Dir) print "Creating disc3..." stamp(disc3Dir, releasestr, "disc3", arch, startedAt) @@ -200,7 +205,7 @@ for file in jointfiles: print "**** WARNING linking %s to %s: %s" % (src, dest, msg) disc3pkgs = excessFiles(distDir + "/RedHat/RPMS", binPkgList, - targetSize * 2 - disc1used - fudgeFactor) + targetSize + disc1Size - disc1used - fudgeFactor) moveFiles("%s/RedHat/RPMS" % disc2Dir, "%s/RedHat/RPMS" % disc3Dir, @@ -220,10 +225,11 @@ disc2pkgs = excessFiles(srcDir + "/SRPMS", srcPkgList, moveFiles("%s/SRPMS" % disc1SrcDir, "%s/SRPMS" % disc2SrcDir, disc2pkgs); +srcDisc1Size = spaceUsed(disc1SrcDir) print "Dropping remainder of sources on third disc..." disc3pkgs = excessFiles(srcDir + "/SRPMS", srcPkgList, - (targetSize - fudgeFactor) * 2) + srcDisc1Size + targetSize - fudgeFactor) moveFiles("%s/SRPMS" % disc2SrcDir, "%s/SRPMS" % disc3SrcDir, disc3pkgs) |