Skip to content
Snippets Groups Projects
Commit 879c0622 authored by Jakub Klinkovský's avatar Jakub Klinkovský Committed by Lukas Fleischer
Browse files

gendummydata.py: set exit code to 1 when there is an error


Of course the default exit code is 0...

Signed-off-by: default avatarLukas Fleischer <lfleischer@archlinux.org>
parent 92e31546
No related branches found
No related tags found
No related merge requests found
......@@ -44,19 +44,19 @@ log = logging.getLogger()
if len(sys.argv) != 2:
log.error("Missing output filename argument")
raise SystemExit
raise SystemExit(1)
# make sure the seed file exists
#
if not os.path.exists(SEED_FILE):
log.error("Please install the 'words' Arch package")
raise SystemExit
raise SystemExit(1)
# make sure comments can be created
#
if not os.path.exists(FORTUNE_FILE):
log.error("Please install the 'fortune-mod' Arch package")
raise SystemExit
raise SystemExit(1)
# track what users/package names have been used
#
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment