Author: elias
Date: Thu Oct  9 21:20:57 2008
New Revision: 29982

URL: http://svn.gna.org/viewcvs/wesnoth?rev=29982&view=rev
Log:
wesnoth_addon_manager: --tar now takes a directory

Modified:
    trunk/data/tools/wesnoth_addon_manager

Modified: trunk/data/tools/wesnoth_addon_manager
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/data/tools/wesnoth_addon_manager?rev=29982&r1=29981&r2=29982&view=diff
==============================================================================
--- trunk/data/tools/wesnoth_addon_manager (original)
+++ trunk/data/tools/wesnoth_addon_manager Thu Oct  9 21:20:57 2008
@@ -51,9 +51,9 @@
         "name may be a Python regexp matched against all add-on names " +
         "(specify the path where to put it with -c, " +
         "current directory will be used by default)")
-    optionparser.add_option("-t", "--tar", action = "store_true",
+    optionparser.add_option("-t", "--tar",
         help = "When used together with --download, create tarballs of any " +
-        "downloaded addons.")
+        "downloaded addons and put into the specified directory.")
     optionparser.add_option("-u", "--upload",
         help = "Upload an add-on. " +
         "UPLOAD should be either the name of an add-on subdirectory," +
@@ -130,7 +130,7 @@
                 print message.get_text_val("message")
 
             if options.tar:
-                tarname = cdir + "/" + name + ".tar.bz2"
+                tarname = options.tar + "/" + name + ".tar.bz2"
                 if options.verbose:
                     sys.stderr.write("Creating tarball %(tarname)s.\n" %
                         locals())


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to