1 --- anaconda-11.0.5/scripts/splittree.py 2005-05-16 19:11:52.000000000 +0300
2 +++ /usr/lib/anaconda-runtime/splittree.py 2006-05-18 00:47:56.275877225 +0300
4 _ts = rpm.TransactionSet()
6 fd = os.open(pkgfile, os.O_RDONLY)
7 - h = _ts.hdrFromFdno(fd)
9 + h = _ts.hdrFromFdno(fd)
11 + raise RuntimeError, 'rpm: %s %s' % (pkgfile, sys.exc_info()[1])
14 return "%s-%s-%s.%s.rpm" %(h['name'], h['version'], h['release'],
18 # now create the dirs for disc1
19 for j in range(0, len(dirlist)):
20 - os.makedirs("%s-disc%d/%s" % (self.dist_dir, i, dirlist[j]))
22 + os.makedirs("%s-disc%d/%s" % (self.dist_dir, i, dirlist[j]))
26 for j in range(0, len(filelist)):
27 filelist[j] = string.replace(filelist[j], self.dist_dir, '')
31 # now create the product/RPMS dir
32 - os.makedirs("%s-disc%d/%s/RPMS" % (self.dist_dir, i, self.product_path))
34 + os.makedirs("%s-disc%d/%s/RPMS" % (self.dist_dir, i, self.product_path))
39 os.makedirs("%s-disc%d/%s/RPMS" % (self.dist_dir, i, self.product_path))