commit 89a06923f65aa979964db187059d8f7ae567ec1d
Author: Sérgio M. Basto <sergio(a)serjux.com>
Date: Sat Sep 19 13:36:24 2020 +0100
Improve helper script
check_new_version.py | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/check_new_version.py b/check_new_version.py
index 7f7bc88..89f8a88 100755
--- a/check_new_version.py
+++ b/check_new_version.py
@@ -20,6 +20,14 @@ def runme(cmd, env, cwd='.'):
return 1
return 0
+enviro = os.environ
+pkgcmd = ['git', 'checkout', 'master']
+if runme(pkgcmd, enviro):
+ print('error running runme')
+pkgcmd = ['git', 'pull'] # 2>/dev/null
+if runme(pkgcmd, enviro):
+ print('error running runme')
+
html =
requests.get('http://get.adobe.com/flashplayer/about/')
#print (html.text)
@@ -35,7 +43,6 @@ new_version = res[-1]
print ("new_version = %s" % new_version)
if new_version != old_version:
- enviro = os.environ
pkgcmd = ['rpmdev-bumpspec', '-n', new_version, '-c',
'Update to %s' % (new_version), 'flash-plugin.spec.in']
if runme(pkgcmd, enviro):
print('error running runme')