Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 835636af authored by Dan Pasanen's avatar Dan Pasanen Committed by Steve Kondik
Browse files

releasetools: fix cleaning up /tmp/

* previous commit did exactly nothing...

Change-Id: I66876aff83528596d628d24e60b5d4c0d81577bd
parent 96ecbc02
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -434,7 +434,7 @@ def UnzipTemp(filename, pattern=None):
  OPTIONS.tempfiles.append(tmp)

  def unzip_to_dir(filename, dirname):
    cmd = ["rm", "-rf", dirname + filename, "targetfiles-*"]
    subprocess.call(["rm", "-rf", dirname + filename, "targetfiles-*"])
    cmd = ["unzip", "-o", "-q", filename, "-d", dirname]
    if pattern is not None:
      cmd.append(pattern)