mirror of
https://github.com/f-droid/fdroidserver.git
synced 2026-03-17 22:47:16 -04: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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user