2 # -*- coding: utf-8 -*-
4 '''Gentoo-keys is a gpg key manager for managing
5 gentoo's gpg-signing keys. It is these keys that are
6 used to verify and validate release media, etc..
8 Distributed under the terms of the GNU General Public License v2
12 Distributed under the terms of the GNU General Public License v2
15 Brian Dolbec <dolsen@gentoo.org>
19 from __future__ import print_function
23 # This block ensures that ^C interrupts are handled quietly.
27 def exithandler(signum,frame):
28 signal.signal(signal.SIGINT, signal.SIG_IGN)
29 signal.signal(signal.SIGTERM, signal.SIG_IGN)
33 signal.signal(signal.SIGINT, exithandler)
34 signal.signal(signal.SIGTERM, exithandler)
35 signal.signal(signal.SIGPIPE, signal.SIG_DFL)
37 except KeyboardInterrupt:
42 from gkeyldap.cli import Main
46 root = os.environ['ROOT']
50 main = Main(root=root)