]> git.ipfire.org Git - pakfire.git/commitdiff
Fix transaction check.
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 3 Oct 2011 22:14:14 +0000 (00:14 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 3 Oct 2011 22:14:14 +0000 (00:14 +0200)
python/pakfire/filelist.py
python/pakfire/transaction.py

index 2eb7e7fc033f7435cce21ab925488035b281d638..14e7af9272034774b09e972a39315470a874ae44 100644 (file)
@@ -23,16 +23,6 @@ class _File(object):
        def __init__(self, pakfire):
                self.pakfire = pakfire
 
-
-class File(_File):
-       def __init__(self, pakfire):
-               _File.__init__(self, pakfire)
-
-               self.name = ""
-               self.pkg  = None
-               self.size = -1
-               self.hash1 = ""
-
        def __cmp__(self, other):
                ret = cmp(self.name, other.name)
 
@@ -51,6 +41,16 @@ class File(_File):
                return False
 
 
+class File(_File):
+       def __init__(self, pakfire):
+               _File.__init__(self, pakfire)
+
+               self.name = ""
+               self.pkg  = None
+               self.size = -1
+               self.hash1 = ""
+
+
 class FileDatabase(_File):
        def __init__(self, pakfire, db, row_id):
                _File.__init__(self, pakfire)
index 487e2795e3f03e4102b1878f5a81668f48a4c731..15cea9d7b80132d218d1d328fb32a7ae1b11d94b 100644 (file)
@@ -130,7 +130,7 @@ class TransactionCheck(object):
                        if file.is_dir():
                                continue
 
-                       if not self.filelist.has_key(file):
+                       if not self.filelist.has_key(file.name):
                                continue
 
                        for f in self.filelist[file.name]: