diff --git a/libraries/entropy/tools.py b/libraries/entropy/tools.py index fc8caf47d..d4409d52f 100644 --- a/libraries/entropy/tools.py +++ b/libraries/entropy/tools.py @@ -1937,9 +1937,10 @@ def spliturl(url): import urlparse return urlparse.urlsplit(url) -# tar.bz2 compress function... -def compressTarBz2(storepath,pathtocompress): - return subprocess.call("cd \""+pathtocompress+"\" && tar cjf \""+storepath+"\" .", "&> /dev/null", shell = True) +def compressTarBz2(storepath, pathtocompress): + cmd = "cd \""+pathtocompress+"\" && tar cjf \""+storepath+"\" " + \ + ". &> /dev/null" + return subprocess.call(cmd, shell = True) def spawn_function(f, *args, **kwds):