chiark
/
gitweb
/
~ianmdlvl
/
fdroidserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a26c3ca
)
Change search path for getsig
author
Henrik Tunedal
<tunedal@gmail.com>
Thu, 17 Feb 2011 21:19:36 +0000
(22:19 +0100)
committer
Henrik Tunedal
<tunedal@gmail.com>
Thu, 17 Feb 2011 21:19:36 +0000
(22:19 +0100)
The path to getsig is now relative to that of the script itself; the
path to the APK files remains relative to the current working
directory.
update.py
patch
|
blob
|
history
diff --git
a/update.py
b/update.py
index fa8c1d150c8f3915c0f675fb37485ee237b16818..2aa09c0d8a79c18d4b33102988dc654a6f90855f 100755
(executable)
--- a/
update.py
+++ b/
update.py
@@
-151,8
+151,10
@@
for apkfile in glob.glob(os.path.join('repo','*.apk')):
f.close()
# Get the signature (or md5 of, to be precise)...
- p = subprocess.Popen(['java', 'getsig', os.path.join('..', apkfile)]
- , cwd='getsig', stdout=subprocess.PIPE)
+ p = subprocess.Popen(['java', 'getsig',
+ os.path.join(os.getcwd(), apkfile)],
+ cwd=os.path.join(sys.path[0], 'getsig'),
+ stdout=subprocess.PIPE)
output = p.communicate()[0]
if options.verbose:
print output