use the name from [dir] rather than campaign_name=...

...which might be different from lowercasing
This commit is contained in:
Gunter Labes 2009-03-01 23:50:00 +00:00
parent d3eb058d99
commit c0b1df98c2
2 changed files with 2 additions and 1 deletions

View file

@ -458,5 +458,6 @@ class CampaignClient:
if verbose:
sys.stderr.write(i * " " + name + "\n")
self.unpackdir(dir, os.path.join(path, name), i + 2, verbose)
return name
# vim: tabstop=4: shiftwidth=4: expandtab: softtabstop=4: autoindent:

View file

@ -120,7 +120,7 @@ if __name__ == "__main__":
else:
decoded = cs.decode(mythread.data)
print "Unpacking %s..." % name
cs.unpackdir(decoded, cdir, verbose = options.verbose)
name = cs.unpackdir(decoded, cdir, verbose = options.verbose)
dirname = os.path.join(cdir, name)
info = os.path.join(dirname, "_info.cfg")
try: