From f3e65ea48023148fbf3c0d75b15de11968c16971 Mon Sep 17 00:00:00 2001 From: Ian Bicking Date: Thu, 5 Mar 2009 14:06:24 -0600 Subject: [PATCH] fix pip zip with multiple arguments --- docs/news.txt | 2 ++ pip.py | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/news.txt b/docs/news.txt index 61c56baea..c35b5b3d1 100644 --- a/docs/news.txt +++ b/docs/news.txt @@ -15,6 +15,8 @@ hg tip * Fixed problem with not being able to install private git repositories. +* Make ``pip zip`` zip all its arguments, not just the first. + 0.3.1 ----- diff --git a/pip.py b/pip.py index 61a8a3c8f..da3758fd5 100755 --- a/pip.py +++ b/pip.py @@ -645,11 +645,13 @@ class ZipCommand(Command): 'The module %s (in %s) is not a directory; cannot be zipped' % (module_name, filename)) packages.append((module_name, filename)) + last_status = None for module_name, filename in packages: if options.unzip: - return self.unzip_package(module_name, filename) + last_status = self.unzip_package(module_name, filename) else: - return self.zip_package(module_name, filename, options.no_pyc) + last_status = self.zip_package(module_name, filename, options.no_pyc) + return last_status def unzip_package(self, module_name, filename): zip_filename = os.path.dirname(filename)