X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fshow_new.py;h=2596f864670cba26a96920802524fbdad9241220;hb=a6dcd91d8fc8e2a298bb2896413cb6deb1835674;hp=445f6d2a54888521abf67b706fa61be20d0af6b4;hpb=c60719bc9a46557970c0c43e90d6f7d0469230b0;p=dak.git diff --git a/dak/show_new.py b/dak/show_new.py old mode 100755 new mode 100644 index 445f6d2a..2596f864 --- a/dak/show_new.py +++ b/dak/show_new.py @@ -29,7 +29,7 @@ import copy, os, sys, time import apt_pkg import examine_package import daklib.database -import daklib.queue +import daklib.queue import daklib.utils # Globals @@ -53,7 +53,7 @@ def html_header(name, filestoexamine): %(name)s - Debian NEW package overview - + - +
- corner image

Navigation

-

.changes

-

.dsc

-

source lintian

+

.changes

+

.dsc

+

source lintian

""" for fn in filter(lambda x: x.endswith('.deb') or x.endswith('.udeb'),filestoexamine): - packagename = fn.split('_')[0] - print """ -

%(pkg)s

-

control file

-

binary lintian

-

.deb contents

-

copyright

-

file listing

- """%{"pkg":packagename} + packagename = fn.split('_')[0] + print """ +

%(pkg)s

+

control file

+

binary lintian

+

.deb contents

+

copyright

+

file listing

+ """%{"pkg":packagename} print "
" - + def html_footer(): print """

Timestamp: %s (UTC)

"""% (time.strftime("%d.%m.%Y / %H:%M:%S", time.gmtime())) print """

@@ -168,11 +171,10 @@ def do_pkg(changes_file): daklib.queue.check_valid(new) examine_package.display_changes(Upload.pkg.changes_file) - for fn in filestoexamine: - if fn.endswith(".deb") or fn.endswith(".udeb"): - examine_package.check_deb(fn) - elif fn.endswith(".dsc"): - examine_package.check_dsc(fn) + for fn in filter(lambda fn: fn.endswith(".dsc"), filestoexamine): + examine_package.check_dsc(fn) + for fn in filter(lambda fn: fn.endswith(".deb") or fn.endswith(".udeb"), filestoexamine): + examine_package.check_deb(fn) html_footer() if sys.stdout != stdout_fd: