Author: soliton
Date: Mon Jun 29 18:36:50 2009
New Revision: 36460
URL: http://svn.gna.org/viewcvs/wesnoth?rev=36460&view=rev
Log:
fixed the tar command
Modified:
branches/1.6/data/tools/wesnoth_addon_manager
Modified: branches/1.6/data/tools/wesnoth_addon_manager
URL:
http://svn.gna.org/viewcvs/wesnoth/branches/1.6/data/tools/wesnoth_addon_manager?rev=36460&r1=36459&r2=36460&view=diff
==============================================================================
--- branches/1.6/data/tools/wesnoth_addon_manager (original)
+++ branches/1.6/data/tools/wesnoth_addon_manager Mon Jun 29 18:36:50 2009
@@ -10,6 +10,7 @@
"""
import sys, os.path, re, time, glob
+from subprocess import Popen
import wesnoth.wmldata as wmldata
import wesnoth.wmlparser as wmlparser
from wesnoth.campaignserver_client import CampaignClient
@@ -142,12 +143,16 @@
oldcfg_path = os.path.join(cdir, name + ".cfg")
if os.path.isfile(oldcfg_path):
oldcfg = name + ".cfg"
+ if options.verbose:
+ sys.stderr.write("Creating tarball with command: tar "
+
+ "cjf %(tarname)s -C %(cdir)s %(name)s
%(oldcfg)s\n" %
+ locals())
+ Popen(["tar", "cjf", tarname, "-C", cdir, name, oldcfg])
else:
- oldcfg = ""
- if options.verbose:
- sys.stderr.write("Creating tarball %(tarname)s.\n" %
- locals())
- Popen(["tar", "cjf", tarname, "-C", cdir, name, oldcfg])
+ if options.verbose:
+ sys.stderr.write("Creating tarball with command: tar "
+
+ "cjf %(tarname)s -C %(cdir)s %(name)s\n" %
locals())
+ Popen(["tar", "cjf", tarname, "-C", cdir, name])
def get_info(name):
"""
_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits