archive: Remove clean_dir parameters

Users of the archive class are responsible for the removal of
target directories.
This commit is contained in:
Fatih Aşıcı
2011-09-05 07:13:12 +00:00
parent 6e2111c78f
commit 706d78aac5
4 changed files with 29 additions and 34 deletions
+2 -1
View File
@@ -44,7 +44,8 @@ class ArchiveTestCase(unittest.TestCase):
targetDir = '/tmp/tests'
archives = sourcearchive.SourceArchives(spec)
archives.fetch(interactive = False)
archives.unpack(targetDir, clean_dir=True)
util.clean_dir(targetDir)
archives.unpack(targetDir)
del archives
newDir = targetDir + '/newZip'