Fix up error messages (Jaroslaw Gorny)

This commit is contained in:
jkeating@localhost.localdomain 2006-10-25 14:11:23 -04:00 committed by Jesse Keating
parent a48c3ade14
commit 779dee205e
2 changed files with 4 additions and 4 deletions

View File

@ -27,14 +27,14 @@ def main():
try: try:
os.makedirs(opts.destdir) os.makedirs(opts.destdir)
except OSError, e: except OSError, e:
print >> sys.stderr, "Error: Cannot destination dir %s" % opts.destdir print >> sys.stderr, "Error: Cannot create destination dir %s" % opts.destdir
sys.exit(1) sys.exit(1)
if not os.path.exists(opts.cachedir): if not os.path.exists(opts.cachedir):
try: try:
os.makedirs(opts.cachedir) os.makedirs(opts.cachedir)
except OSError, e: except OSError, e:
print >> sys.stderr, "Error: Cannot create cache dir %s" % opts.destdir print >> sys.stderr, "Error: Cannot create cache dir %s" % opts.cachedir
sys.exit(1) sys.exit(1)
mygather = gather.Gather(opts, pkglist) mygather = gather.Gather(opts, pkglist)

View File

@ -142,14 +142,14 @@ def main():
try: try:
os.makedirs(opts.destdir) os.makedirs(opts.destdir)
except OSError, e: except OSError, e:
print >> sys.stderr, "Error: Cannot destination dir %s" % opts.destdir print >> sys.stderr, "Error: Cannot create destination dir %s" % opts.destdir
sys.exit(1) sys.exit(1)
if not os.path.exists(opts.cachedir): if not os.path.exists(opts.cachedir):
try: try:
os.makedirs(opts.cachedir) os.makedirs(opts.cachedir)
except OSError, e: except OSError, e:
print >> sys.stderr, "Error: Cannot create cache dir %s" % opts.destdir print >> sys.stderr, "Error: Cannot create cache dir %s" % opts.cachedir
sys.exit(1) sys.exit(1)
mygather = Gather(opts, pkglist) mygather = Gather(opts, pkglist)