mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-27 17:26:23 +00:00
wesnoth_addon_manager: --tar now takes a directory
This commit is contained in:
parent
a33b05979b
commit
16a9206301
@ -51,9 +51,9 @@ if __name__ == "__main__":
|
||||
"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 @@ if __name__ == "__main__":
|
||||
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())
|
||||
|
Loading…
x
Reference in New Issue
Block a user