3 """Copyright 2003-2010 Gentoo Foundation
4 Distributed under the terms of the GNU General Public License v2
7 from __future__ import print_function
11 __author__ = "Thomas de Grenier de Latour (tgl), " + \
12 "modular re-write by: Brian Dolbec (dol-sen)"
13 __email__ = "degrenier@easyconnect.fr, " + \
14 "brian.dolbec@gmail.com"
16 __productname__ = "eclean"
17 __description__ = "A cleaning tool for Gentoo distfiles and binaries."
22 # This block ensures that ^C interrupts are handled quietly.
26 def exithandler(signum,frame):
27 signal.signal(signal.SIGINT, signal.SIG_IGN)
28 signal.signal(signal.SIGTERM, signal.SIG_IGN)
32 signal.signal(signal.SIGINT, exithandler)
33 signal.signal(signal.SIGTERM, exithandler)
34 signal.signal(signal.SIGPIPE, signal.SIG_DFL)
36 except KeyboardInterrupt:
41 from gentoolkit.eclean.cli import main
45 except KeyboardInterrupt: