Hi,
pungi sounds like a good idea for me ;) I'm in need for such a tool from time 
to time.

I'll try to look deeper in the code and make some constructive questions about 
it, as for now, this is the trivial patch that fixes some error messages.

regards,

-- 
Jaroslaw Gorny

signed-of-by: Jaroslaw Gorny <[EMAIL PROTECTED]>

---

diff -ruN pungi/gather.py pungi-my/gather.py
--- pungi/gather.py	2006-10-25 19:10:50.000000000 +0200
+++ pungi-my/gather.py	2006-10-25 19:25:31.000000000 +0200
@@ -142,14 +142,14 @@
         try:
             os.makedirs(opts.destdir)
         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)
 
     if not os.path.exists(opts.cachedir):
         try:
             os.makedirs(opts.cachedir)
         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)
 
     mygather = Gather(opts, pkglist)
diff -ruN pungi/__init__.py pungi-my/__init__.py
--- pungi/__init__.py	2006-10-25 19:10:50.000000000 +0200
+++ pungi-my/__init__.py	2006-10-25 19:21:26.000000000 +0200
@@ -27,14 +27,14 @@
         try:
             os.makedirs(opts.destdir)
         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)
 
     if not os.path.exists(opts.cachedir):
         try:
             os.makedirs(opts.cachedir)
         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)
 
     mygather = gather.Gather(opts, pkglist)

Attachment: pgpJQBbB5vLsK.pgp
Description: PGP signature

--
Fedora-buildsys-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/fedora-buildsys-list

Reply via email to