3
# Copyright 2008 (C) Canonical Ltd.
7
from fiveaday import bzr, files, parser, signature
10
args = parser.parse_args()
12
username = files.get_lpid()
14
return 102 #102: username not defined
16
if args[0] == "--update":
17
err = bzr.update_branch()
19
# stop if creating/updating branch was not successful
20
print >> sys.stderr, "bzr failed with error code", err
21
return 103 #103: error while updating bzr branch
22
return signature.update(args[1:])
23
if args[0] == "--add":
24
return bzr.add(args[1:])
27
if __name__ == "__main__":