mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-14 06:52:39 +03:00
Change search path for getsig
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.
This commit is contained in:
parent
a26c3ca507
commit
c7676f2976
1 changed files with 4 additions and 2 deletions
|
@ -151,8 +151,10 @@ for apkfile in glob.glob(os.path.join('repo','*.apk')):
|
||||||
f.close()
|
f.close()
|
||||||
|
|
||||||
# Get the signature (or md5 of, to be precise)...
|
# Get the signature (or md5 of, to be precise)...
|
||||||
p = subprocess.Popen(['java', 'getsig', os.path.join('..', apkfile)]
|
p = subprocess.Popen(['java', 'getsig',
|
||||||
, cwd='getsig', stdout=subprocess.PIPE)
|
os.path.join(os.getcwd(), apkfile)],
|
||||||
|
cwd=os.path.join(sys.path[0], 'getsig'),
|
||||||
|
stdout=subprocess.PIPE)
|
||||||
output = p.communicate()[0]
|
output = p.communicate()[0]
|
||||||
if options.verbose:
|
if options.verbose:
|
||||||
print output
|
print output
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue