[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

a simple script to see what the last upload date was for a package installed on system.



Hello,

what follows is a simple script to see what the last upload date
was for a package instaleld on a system. It's not versatile, and 
does not handle badly-maintained packages well.

Comments welcome.



#!/bin/bash
# 2001 Aug 22, junichi uekawa
# copyright 2001 Junichi Uekawa
# redistribution under the terms of GPL version 2 or later permitted.

TEMPFILE=~/.tmp.checkchangelogdate.sh

for A in /usr/share/doc/*; do
  test -f $A/changelog.Debian.gz || continue
  zcat $A/changelog.Debian.gz | dpkg-parsechangelog -l- > $TEMPFILE
  echo "[$(cat $TEMPFILE | grep ^Source | sed "s/^Source:.\(.*\)$/\1/")] "  \
      $(cat $TEMPFILE | grep ^Date: | sed "s/^Date:.\(.*\)$/\1/") \
      $(cat $TEMPFILE | grep ^Maintainer: | sed "s/^Maintainer:.\(.*\)$/\1/")
done;

rm $TEMPFILE




-- 
dancer@debian.org : Junichi Uekawa   http://www.netfort.gr.jp/~dancer
GPG Fingerprint : 17D6 120E 4455 1832 9423  7447 3059 BF92 CD37 56F4



Reply to: