Commit 420c8f33 authored by Aurélien Dunand's avatar Aurélien Dunand
Browse files

Fix typo in extract function

parent 9470b6f7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -786,7 +786,7 @@ class PackageImage(Image):
        if os.path.exists(directory):
            if not os.path.isdir(directory):
                raise Exception("Destination %s is not a directory" % directory)
            if not force and len(os.listdir(dest)) > 0:
            if not force and len(os.listdir(directory)) > 0:
                raise Exception("Directory %s is not empty (need force)" % directory)
        else:
            istools.mkdir(directory)