Use correct cachedir after rename
authorJames Antill <james@and.org>
Mon, 19 Jan 2009 14:52:32 +0000 (09:52 -0500)
committerJames Antill <james@and.org>
Mon, 19 Jan 2009 14:52:32 +0000 (09:52 -0500)
createrepo/yumbased.py

index 60568e3ee6f6d05e2f4118da95a860dc7e5146ad..f4ff87cf2d051fa2a19c38f71a68501d08241835 100644 (file)
@@ -77,7 +77,7 @@ class CreateRepoPackage(YumLocalPackage):
             #  This is atomic cache creation via. rename, so we can have two
             # tasks using the same cachedir ... mash does this.
             try:
-                (csumo, tmpfilename) = tempfile.mkstemp(dir=self.crp_cachedir)
+                (csumo, tmpfilename) = tempfile.mkstemp(dir=self._cachedir)
                 csumo = os.fdopen(csumo, 'w', -1)
                 csumo.write(checksum)
                 csumo.close()