Prepping release
This commit is contained in:
2
scripts/update_packages.py
Normal file → Executable file
2
scripts/update_packages.py
Normal file → Executable file
@@ -28,7 +28,7 @@ def main():
|
||||
p.wait()
|
||||
commit = p.stdout.read().strip()
|
||||
print('Found commit %s' % commit)
|
||||
regex = '"s/^__praw_hash__ =.*$/__praw_hash__ = \'%s\'/g"' % commit
|
||||
regex = 's/^__praw_hash__ =.*$/__praw_hash__ = \'%s\'/g' % commit
|
||||
packages_root = os.path.join(ROOT, 'rtv', 'packages', '__init__.py')
|
||||
print('Updating commit hash in %s' % packages_root)
|
||||
subprocess.check_call(['sed', '-i', '', regex, packages_root])
|
||||
|
||||
Reference in New Issue
Block a user