[yum-git] yum/rpmtrans.py
Seth Vidal
skvidal at linux.duke.edu
Tue Mar 11 05:27:03 UTC 2008
yum/rpmtrans.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 0282b576e248d03215a8df5b2699dd5c72a4ec01
Author: Seth Vidal <skvidal at fedoraproject.org>
Date: Tue Mar 11 01:24:23 2008 -0400
once more, make sure nothing in the transaction can EVER occur w/o our persistent dir being made
diff --git a/yum/rpmtrans.py b/yum/rpmtrans.py
index 33c9126..91bf12c 100644
--- a/yum/rpmtrans.py
+++ b/yum/rpmtrans.py
@@ -286,12 +286,13 @@ class RPMTransaction:
self._ts_time = time.strftime('%Y-%m-%d.%H:%M.%S')
tsfn = '%s/transaction-all.%s' % (self.base.conf.persistdir, self._ts_time)
self.ts_all_fn = tsfn
+ if not os.path.exists(self.base.conf.persistdir):
+ os.makedirs(self.base.conf.persistdir) # make the dir,
try:
fo = open(tsfn, 'w')
except (IOError, OSError), e:
self.display.errorlog('could not open ts_all file: %s' % e)
return
-
for (t,e,n,v,r,a) in self._te_tuples:
msg = "%s %s:%s-%s-%s.%s\n" % (t,e,n,v,r,a)
More information about the Yum-cvs-commits
mailing list