From 949ba4bfa1055343b39d988c7b26c1f73ce28ac2 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Mon, 30 Apr 2012 23:41:22 +0200 Subject: [PATCH] Fix two coding errors. --- python/pakfire/chroot.py | 2 ++ python/pakfire/repository/remote.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/python/pakfire/chroot.py b/python/pakfire/chroot.py index 521759b10..9862dc74b 100644 --- a/python/pakfire/chroot.py +++ b/python/pakfire/chroot.py @@ -92,6 +92,8 @@ def do(command, shell=False, chrootPath=None, cwd=None, timeout=0, raiseExc=True if logger: logger.debug("Executing command: %s in %s" % (command, chrootPath or "/")) + child = None + try: # Create new child process child = subprocess.Popen( diff --git a/python/pakfire/repository/remote.py b/python/pakfire/repository/remote.py index dade232cd..6d2cdc7a9 100644 --- a/python/pakfire/repository/remote.py +++ b/python/pakfire/repository/remote.py @@ -112,7 +112,7 @@ class RepositoryRemote(base.RepositoryFactory): ) def clean(self): - RepositoryFactory.clean(self) + base.RepositoryFactory.clean(self) # Remove all files in the files cache. self.cache.destroy() -- 2.39.5