diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2014-06-28 21:36:33 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2014-06-28 21:36:33 -0400 |
commit | a66b9b41500b6b6765eab1b466f0618a1854468b (patch) | |
tree | 0b46d86ddbe29d263449e4dac8b024456ed03411 /setuptools/command | |
parent | 4b40db2a2e7d2506a2507b979d6e5ab2c659ca20 (diff) | |
parent | 3e5a0b39681e8f03a8174ac329db4047bb3df3d4 (diff) | |
download | python-setuptools-bitbucket-a66b9b41500b6b6765eab1b466f0618a1854468b.tar.gz |
Merge pull-request #575.3
Diffstat (limited to 'setuptools/command')
-rwxr-xr-x | setuptools/command/egg_info.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/setuptools/command/egg_info.py b/setuptools/command/egg_info.py index 981c7ab7..a1818edc 100755 --- a/setuptools/command/egg_info.py +++ b/setuptools/command/egg_info.py @@ -171,10 +171,10 @@ class egg_info(Command): version = '' if self.tag_build: version += self.tag_build - if self.tag_svn_revision and ( - os.path.exists('.svn') or os.path.exists('PKG-INFO') - ): - version += '-r%s' % self.get_svn_revision() + if self.tag_svn_revision: + rev = self.get_svn_revision() + if rev: # is 0 if it's not an svn working copy + version += '-r%s' % rev if self.tag_date: import time @@ -320,7 +320,7 @@ class manifest_maker(sdist): self.filelist.exclude_pattern(None, prefix=build.build_base) self.filelist.exclude_pattern(None, prefix=base_dir) sep = re.escape(os.sep) - self.filelist.exclude_pattern(sep + r'(RCS|CVS|\.svn)' + sep, + self.filelist.exclude_pattern(r'(^|' + sep + r')(RCS|CVS|\.svn)' + sep, is_regex=1) |