scripts/dtrx

branch
trunk
changeset 66
af0b822b012e
parent 65
0aea49161478
child 69
35a2f45cdd3b
--- a/scripts/dtrx	Thu Jun 05 22:54:10 2008 -0400
+++ b/scripts/dtrx	Thu Jul 10 18:44:06 2008 -0400
@@ -643,6 +643,11 @@
                " * extract it Here"]
     prompt = "What do you want to do?  (I/r/h) "
 
+    def __init__(self, options):
+        BasePolicy.__init__(self, options)
+        if options.flat:
+            self.permanent_policy = EXTRACT_HERE
+
     def prep(self, archive_filename, extractor):
         question = ["%s contains one %s, but it has a weird name." %
                     (archive_filename, extractor.content_type)]

mercurial