1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-10-03 17:50:11 +02:00

import: fix import -u from fdroiddata

Have -u take precedence over .git checking to fix import -u being run from
fdroiddata.
This commit is contained in:
Daniel Martí 2015-09-15 14:06:31 -07:00
parent 41370a12b0
commit 2bf04f8054

View File

@ -180,12 +180,12 @@ def main():
root_dir = None
src_dir = None
if os.path.isdir('.git'):
if options.url:
root_dir, src_dir = get_metadata_from_url(app, options.url)
elif os.path.isdir('.git'):
if options.url:
app['Web Site'] = options.url
root_dir = get_subdir(os.getcwd())
elif options.url:
root_dir, src_dir = get_metadata_from_url(app, options.url)
else:
logging.error("Specify project url.")
sys.exit(1)