diff options
| author | fuzzyray <fuzzyray@gentoo.org> | 2009-12-09 20:07:17 +0000 |
|---|---|---|
| committer | fuzzyray <fuzzyray@gentoo.org> | 2009-12-09 20:07:17 +0000 |
| commit | 96c487f24e1a6fff62b2962c484e697b312ab56d (patch) | |
| tree | da8b71876a3e8eeead54139b8dc1e4a5f2e5d4e1 /setup.py | |
| parent | 000102587bf416600c5e3a83f293d5225505367f (diff) | |
| download | gentoolkit-96c487f24e1a6fff62b2962c484e697b312ab56d.tar.gz | |
Modify setup.py to run set_version correctly on revdep-rebuild
svn path=/trunk/gentoolkit/; revision=708
Diffstat (limited to 'setup.py')
| -rwxr-xr-x | setup.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -14,7 +14,7 @@ cwd = os.getcwd() # Bash files that need `VERSION=""` subbed, relative to this dir: bash_scripts = [os.path.join(cwd, path) for path in ( 'bin/euse', - 'bin/revdep-rebuild', + 'bin/revdep-rebuild' )] # Python files that need `__version__ = ""` subbed, relative to this dir: @@ -51,7 +51,7 @@ class set_version(core.Command): with open(f, 'w') as s: s.writelines(updated_file) quote = r'[\'"]{1}' - bash_re = r'(?<=^VERSION=)' + quote + '[^\'"]*' + quote + bash_re = r'(?<=VERSION=)' + quote + '[^\'"]*' + quote sub(bash_scripts, bash_re) python_re = r'(?<=^__version__ = )' + quote + '[^\'"]*' + quote sub(python_scripts, python_re) |
