X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fshow_new.py;h=19566881ca2d2bdbf6606d8bd1185d3423c0383d;hb=39171929ed25deb37aee68333e3f7175ab4128ce;hp=895defadb8f71519cd9fa0a152f8b9cf65b25a22;hpb=f56058049885c86071f354d70d69959de8a4cd53;p=dak.git diff --git a/dak/show_new.py b/dak/show_new.py old mode 100755 new mode 100644 index 895defad..19566881 --- a/dak/show_new.py +++ b/dak/show_new.py @@ -25,11 +25,11 @@ ################################################################################ -import copy, errno, os, stat, sys, time -import apt_pkg, apt_inst +import copy, os, sys, time +import apt_pkg import examine_package import daklib.database -import daklib.queue +import daklib.queue import daklib.utils # Globals @@ -51,42 +51,42 @@ def html_header(name): """ print "%s - Debian NEW package overview" % (name) print """ - - - -
- + + + +
+ - + Debian Project -
-
- - - +
+ +
+ + + """ print """""" % (name) print """ - - - + + - - -
Debian NEW package overview for %s
+
+
- """ +
+ """ def html_footer(): print "

Timestamp: %s (UTC)

" % (time.strftime("%d.%m.%Y / %H:%M:%S", time.gmtime())) print """ Valid HTML 4.01! - + Valid CSS! """ @@ -106,7 +106,7 @@ def do_pkg(changes_file): changes["suite"] = copy.copy(changes["distribution"]) # Find out what's new - new = daklib.utils.determine_new(changes, files, projectB, 0) + new = daklib.queue.determine_new(changes, files, projectB, 0) stdout_fd = sys.stdout @@ -117,7 +117,7 @@ def do_pkg(changes_file): sys.stdout = open(os.path.join(Cnf["Show-New::HTMLPath"],htmlname),"w") html_header(changes["source"]) - daklib.utils.check_valid(new) + daklib.queue.check_valid(new) examine_package.display_changes(Upload.pkg.changes_file) for pkg in new.keys():