createrepo/__init__.py
[email protected] (Seth Vidal)
| Newsgroups | gmane.linux.rpm.metadata |
|---|---|
| Message-ID | <[email protected]> |
createrepo/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) New commits: commit 71fa2626e371a20238551609add2580e0379e3aa Author: Seth Vidal <[email protected]> Date: Wed Feb 13 15:48:52 2008 -0500 raise, don't print diff --git a/createrepo/__init__.py b/createrepo/__init__.py index 9ae9272..a2719db 100644 --- a/createrepo/__init__.py +++ b/createrepo/__init__.py @@ -196,8 +196,8 @@ class MetaDataGenerator: if not os.path.isabs(a): a = os.path.join(self.conf.outputdir ,a) if not checkAndMakeDir(a): - errorprint(_('Error: cannot open/write to cache dir %s' % a)) - parser.print_usage() + raise MDError, _('Error: cannot open/write to cache dir %s' % a) + self.conf.cachedir = a