Author: soliton Date: Thu Oct 9 21:52:28 2008 New Revision: 29987 URL: http://svn.gna.org/viewcvs/wesnoth?rev=29987&view=rev Log: wesnoth_addon_manager: --tar now takes a directory
Modified: branches/1.4/utils/campaigns_client.py Modified: branches/1.4/utils/campaigns_client.py URL: http://svn.gna.org/viewcvs/wesnoth/branches/1.4/utils/campaigns_client.py?rev=29987&r1=29986&r2=29987&view=diff ============================================================================== --- branches/1.4/utils/campaigns_client.py (original) +++ branches/1.4/utils/campaigns_client.py Thu Oct 9 21:52:28 2008 @@ -41,9 +41,9 @@ "name may be a Python regexp matched against all campaign 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 campaign. " + "UPLOAD should be either the name of a campaign subdirectory," + @@ -120,7 +120,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()) @@ -307,4 +307,5 @@ import addon_manager.html campaigns_client.html.output(options.html, options.url, data) else: - sys.stderr.write("Could not connect.\n") + sys.stderr.write("Could not connect.\n") + _______________________________________________ Wesnoth-commits mailing list Wesnoth-commits@gna.org https://mail.gna.org/listinfo/wesnoth-commits