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

Unverified Commit de62e772 authored by Dan Pasanen's avatar Dan Pasanen Committed by Michael Bestas
Browse files

releasetools: clean up residual targetfiles-* dirs in /tmp/

Change-Id: I3792307663f8a85513e102c8bf3d78cf4e514760
parent 9a56703a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -592,6 +592,7 @@ def UnzipTemp(filename, pattern=None):
  OPTIONS.tempfiles.append(tmp)

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