* dak/rm.py: likewise
* dak/show_new.py: likewise
* dak/split_done.py: likewise
+ * dak/stats.py: likewise
* dak/check_archive.py (check_files_not_symlinks): Remove
long-time unused and commented code. Import stuff from daklib as
import pg, sys
import apt_pkg
-import daklib.utils
+import daklib.utils as utils
################################################################################
def daily_install_stats():
stats = {}
- f = daklib.utils.open_file("2001-11")
+ f = utils.open_file("2001-11")
for line in f.readlines():
split = line.strip().split('|')
program = split[1]
def main ():
global Cnf, projectB
- Cnf = daklib.utils.get_conf()
+ Cnf = utils.get_conf()
Arguments = [('h',"help","Stats::Options::Help")]
for i in [ "help" ]:
if not Cnf.has_key("Stats::Options::%s" % (i)):
usage()
if len(args) < 1:
- daklib.utils.warn("dak stats requires a MODE argument")
+ utils.warn("dak stats requires a MODE argument")
usage(1)
elif len(args) > 1:
- daklib.utils.warn("dak stats accepts only one MODE argument")
+ utils.warn("dak stats accepts only one MODE argument")
usage(1)
mode = args[0].lower()
elif mode == "daily-install":
daily_install_stats()
else:
- daklib.utils.warn("unknown mode '%s'" % (mode))
+ utils.warn("unknown mode '%s'" % (mode))
usage(1)
################################################################################