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

patch for splittree.py to resolve the source disc overflow.



Hi,anaconda-list,
I found that the splittree.py got exception when the size of source rpm
is larger than self.target_size (640.0 * 1024.0 * 1024).The following
patch may can resolve the problem.
Please check it, thank you very much.

diff -Nura anaconda/scripts/splittree.py anaconda.new/scripts/splittree.py
--- anaconda/scripts/splittree.py 2006-11-08 23:37:39.000000000 +0800
+++ anaconda.new/scripts/splittree.py 2006-12-13 10:39:04.000000000 +0800
@@ -378,7 +378,7 @@
self.logfile.append("Overflowing %s on disc%d" % (srpm_list[i][1], disc))
break
else:
- discsize = self.getSize("%s-disc%d" % (self.dist_dir, srpm_disc_list[i]))
+ discsize = self.getSize("%s-disc%d" % (self.dist_dir, disc))
self.logfile.append("%s-disc%d size: %s" % (self.arch, disc, discsize))
self.src_list.pop(self.src_list.index(disc))
os.link("%s/%s" % (self.src_dir, srpm_list[i][1]),


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