Don't import fdroid twice, allow -h without config

This commit is contained in:
Daniel Martí 2013-05-30 16:36:39 +02:00
parent 5d36f41c3f
commit 5b6647af30

4
fdroid
View file

@ -18,7 +18,6 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
import sys import sys
import fdroidserver
commands = [ commands = [
"build", "build",
@ -45,8 +44,7 @@ def main():
command = sys.argv[1] command = sys.argv[1]
if not command in commands: if not command in commands:
print "Command '" + command + "' not recognised." print "Command '" + command + "' not recognised.\n"
print ""
print_help() print_help()
sys.exit(1) sys.exit(1)