Message ID | 20110803115044.25712.87236.launchpad@loganberry.canonical.com |
---|---|
State | Accepted |
Headers | show |
=== modified file 'linaro-hwpack-replace' --- linaro-hwpack-replace 2011-07-28 16:32:53 +0000 +++ linaro-hwpack-replace 2011-08-03 11:29:43 +0000 @@ -23,6 +23,7 @@ import os import sys import shutil +import glob import logging import tarfile import tempfile @@ -201,7 +202,8 @@ #tar the hardware pack with the new debian file included in it tar = tarfile.open( hwpack_name , "w:gz") os.chdir(tempdir) - tar.add('.', recursive=True) + for file_name in glob.glob('*'): + tar.add(file_name, recursive=True) tar.close() except Exception, details: logger.error("Error Details: %s", details)