]> git.ipfire.org Git - pakfire.git/commitdiff
Fix two coding errors.
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 30 Apr 2012 21:41:22 +0000 (23:41 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 30 Apr 2012 21:41:22 +0000 (23:41 +0200)
python/pakfire/chroot.py
python/pakfire/repository/remote.py

index 521759b10e023f9699c170bd6e6e5da944d8aaac..9862dc74b85b1affc9e5406696fc5fc3977cca3d 100644 (file)
@@ -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(
index dade232cdefa9b47e571395858e7fcdf249a7ac5..6d2cdc7a9ede76977d4e0078e31fb47fd16d6de3 100644 (file)
@@ -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()