]> git.pld-linux.org Git - packages/anaconda.git/blame - anaconda-errorhandling.patch
- more fs tools
[packages/anaconda.git] / anaconda-errorhandling.patch
CommitLineData
9e9f0a8b
ER
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
3@@ -36,7 +36,11 @@
4 _ts = rpm.TransactionSet()
5 _ts.setVSFlags(-1)
6 fd = os.open(pkgfile, os.O_RDONLY)
7- h = _ts.hdrFromFdno(fd)
8+ try:
9+ h = _ts.hdrFromFdno(fd)
10+ except:
11+ raise RuntimeError, 'rpm: %s %s' % (pkgfile, sys.exc_info()[1])
12+
13 os.close(fd)
14 return "%s-%s-%s.%s.rpm" %(h['name'], h['version'], h['release'],
15 h['arch'])
16@@ -217,7 +221,10 @@
17
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]))
21+ try:
22+ os.makedirs("%s-disc%d/%s" % (self.dist_dir, i, dirlist[j]))
23+ except:
24+ pass
25
26 for j in range(0, len(filelist)):
27 filelist[j] = string.replace(filelist[j], self.dist_dir, '')
28@@ -228,7 +235,10 @@
29 pass
30
31 # now create the product/RPMS dir
32- os.makedirs("%s-disc%d/%s/RPMS" % (self.dist_dir, i, self.product_path))
33+ try:
34+ os.makedirs("%s-disc%d/%s/RPMS" % (self.dist_dir, i, self.product_path))
35+ except:
36+ pass
37
38 else:
39 os.makedirs("%s-disc%d/%s/RPMS" % (self.dist_dir, i, self.product_path))
This page took 0.030076 seconds and 4 git commands to generate.