~ubuntu-branches/ubuntu/precise/distribute/precise

« back to all changes in this revision

Viewing changes to setuptools/command/upload_docs.py

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2009-12-28 23:52:40 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20091228235240-mw9ruki1uprxfmo2
Tags: 0.6.10-1
* New upstream version.
* Stop building for python2.4. Closes: #557000.

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
        tmp_file = os.path.join(tmp_dir, "%s.zip" % name)
51
51
        zip_file = zipfile.ZipFile(tmp_file, "w")
52
52
        for root, dirs, files in os.walk(self.upload_dir):
53
 
            if not files:
 
53
            if root == self.upload_dir and not files:
54
54
                raise DistutilsOptionError(
55
55
                    "no files found in upload directory '%s'"
56
56
                    % self.upload_dir)