[Popcon-commits] cvs commit to popularity-contest by pere
popcon-commits@lists.alioth.debian.org
popcon-commits@lists.alioth.debian.org
Sun, 14 Sep 2003 12:32:21 +0200
Update of /cvsroot/popcon/popularity-contest
In directory quantz:/tmp/cvs-serv10653
Modified Files:
popularity-contest
Log Message:
Include architecture info in the submissions. (CLoses: #148756, #187736)
Index: popularity-contest
===================================================================
RCS file: /cvsroot/popcon/popularity-contest/popularity-contest,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- popularity-contest 7 Sep 2003 17:27:27 -0000 1.1.1.1
+++ popularity-contest 14 Sep 2003 10:32:19 -0000 1.2
@@ -19,6 +19,8 @@
DI=/var/lib/dpkg/info
PACKAGES=$(dpkg-awk "Status: .* installed" -- Package \
| grep '^Package:' | sed 's/^Package: //')
+DEB_HOST_ARCH=`dpkg --print-architecture`
+DEB_HOST_GNU_TYPE=`dpkg-architecture -qDEB_HOST_GNU_TYPE`
# Now, for each package, get the list of FILES that we are interested in,
# producing output lines of the format "atime ctime package pathname".
@@ -78,6 +80,6 @@
# add a header/footer.
( echo "POPULARITY-CONTEST-0" "TIME:$(date +%s)" \
- "ID:$MY_HOSTID"
+ "ID:$MY_HOSTID DEB_HOST_ARCH:$DEB_HOST_ARCH DEB_HOST_GNU_TYPE:$DEB_HOST_GNU_TYPE"
sort -n -r;
echo "END-POPULARITY-CONTEST-0" "TIME:$(date +%s)" )