fdroidserver.import_subcommand module

fdroidserver.import_subcommand.clone_to_tmp_dir(app)
fdroidserver.import_subcommand.get_app_from_url(url)

Guess basic app metadata from the URL.

The URL must include a network hostname, unless it is an lp:, file:, or git/ssh URL. This throws ValueError on bad URLs to match urlparse().

fdroidserver.import_subcommand.getrepofrompage(url)

Get the repo type and address from the given web page.

The page is scanned in a rather naive manner for ‘git clone xxxx’, ‘hg clone xxxx’, etc, and when one of these is found it’s assumed that’s the information we want. Returns repotype, address, or None, reason

fdroidserver.import_subcommand.handle_retree_error_on_windows(function, path, excinfo)

Python can’t remove a readonly file on Windows so chmod first.

fdroidserver.import_subcommand.main()