Commit 8a70a969 authored by Seblu's avatar Seblu
Browse files

Improve tarball extract debug logging

parent 1eb720dc
Loading
Loading
Loading
Loading
+3 −2
Original line number Original line Diff line number Diff line
@@ -113,7 +113,9 @@ class AURPackage(dict):


  def extract(self, path):
  def extract(self, path):
    '''Extract aur source tarball inside a directory path.'''
    '''Extract aur source tarball inside a directory path.'''
    fo = urlopen(f"{self.AUR_URL}/{self.urlpath}")
    url = f"{self.AUR_URL}/{self.urlpath}"
    debug(f"{self.name} Extracting aur tarball from {url} to {path}")
    fo = urlopen(url)
    tarball = tar(mode='r|*', fileobj=fo)
    tarball = tar(mode='r|*', fileobj=fo)
    tarball.extractall(path)
    tarball.extractall(path)
    fo.close()
    fo.close()
@@ -290,7 +292,6 @@ class Package():
    # Make a temporary build directory.
    # Make a temporary build directory.
    build_dir = TemporaryDirectory()
    build_dir = TemporaryDirectory()
    # Extract the tarball inside it.
    # Extract the tarball inside it.
    self.debug(f"Extracting aur tarball in {build_dir.name}")
    self._aur.extract(build_dir.name)
    self._aur.extract(build_dir.name)
    with open(logfn, "w") as logfo:
    with open(logfn, "w") as logfo:
      cwd = getcwd()
      cwd = getcwd()