Added 'reinitialize_command()' method -- delegated to Distribution instance.
authorGreg Ward <gward@python.net>
Thu, 1 Jun 2000 01:08:52 +0000 (01:08 +0000)
committerGreg Ward <gward@python.net>
Thu, 1 Jun 2000 01:08:52 +0000 (01:08 +0000)
Ensure 'make_archive()' method returns archive filename.

Lib/distutils/cmd.py

index f80338920e781777e5eadcb90b1b8886c37423dc..852acadbeae9db95d1ddcdb014a8073229d03e7b 100644 (file)
@@ -215,6 +215,10 @@ class Command:
         cmd_obj.ensure_finalized ()
         return cmd_obj
 
+    # XXX rename to 'get_reinitialized_command()'? (should do the
+    # same in dist.py, if so)
+    def reinitialize_command (self, command):
+        return self.distribution.reinitialize_command(command)
 
     def run_command (self, command):
         """Run some other command: uses the 'run_command()' method of
@@ -306,8 +310,8 @@ class Command:
 
     def make_archive (self, base_name, format,
                       root_dir=None, base_dir=None):
-        util.make_archive (base_name, format, root_dir, base_dir,
-                           self.verbose, self.dry_run)
+        return util.make_archive (base_name, format, root_dir, base_dir,
+                                  self.verbose, self.dry_run)
 
 
     def make_file (self, infiles, outfile, func, args,