[Yum-devel] [PATCH] unlink_f(cachecookie). BZ 853632
Zdeněk Pavlas
zpavlas at redhat.com
Mon Sep 3 11:04:45 UTC 2012
I was not able to reproduce this, however the fix is simple.
The _local repo is enabled, so cachecookie should by there.
Perhaps something calls postdownload_hook twice?
---
plugins/local/local.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/plugins/local/local.py b/plugins/local/local.py
index c45a1ce..cab69c5 100644
--- a/plugins/local/local.py
+++ b/plugins/local/local.py
@@ -146,7 +146,7 @@ def _reposetup(conduit):
if repo.id == "_local"]
if lrepo:
lrepo = lrepo[0]
- os.unlink("%s/cachecookie" % lrepo.cachedir)
+ yum.misc.unlink_f("%s/cachecookie" % lrepo.cachedir)
return
conf_fname = '/etc/yum.repos.d/_local.repo'
--
1.7.4.4
More information about the Yum-devel
mailing list