projects
/
tools
/
createrepo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7bb2ff3
)
when the update_md_path doesn't exist - emit a warning of some kind - rather than...
author
Seth Vidal
<skvidal@fedoraproject.org>
Wed, 21 Apr 2010 16:59:58 +0000
(12:59 -0400)
committer
Seth Vidal
<skvidal@fedoraproject.org>
Wed, 21 Apr 2010 16:59:58 +0000
(12:59 -0400)
this is mostly to help jesse b/c he asked nicely
createrepo/__init__.py
patch
|
blob
|
history
diff --git
a/createrepo/__init__.py
b/createrepo/__init__.py
index e2402aef9860743ef7e8ecb8f5136d089c074840..a786955cec198da4543c513062c881ed9936aefa 100644
(file)
--- a/
createrepo/__init__.py
+++ b/
createrepo/__init__.py
@@
-337,7
+337,11
@@
class MetaDataGenerator:
opts['do_stat'] = False
if self.conf.update_md_path:
- old_repo_path = os.path.normpath(self.conf.update_md_path)
+ norm_u_md_path = os.path.normpath(self.conf.update_md_path)
+ if not os.path.exists(norm_u_md_path):
+ msg = _('Warning: could not open update_md_path: %s') % norm_u_md_path
+ self.callback.errorlog(msg)
+ old_repo_path = os.path.normpath(norm_u_md_path)
else:
old_repo_path = self.conf.outputdir