[Popcon-developers] [patch] switch to cron.daily

Petter Reinholdtsen pere at hungry.com
Tue May 6 21:31:24 UTC 2008


[Bill Allombert]
> Sure, whether or not I modify the cron.weekly file.

Hm, strange.  I built again with 'set -x' in preinst and postinst and
got the following output after first purging popularity-contest, then
installing version 1.44, and finally installing version
1.45~0.pere.test.1 using dpkg -i.  After the upgrade, the cron job is
missing.

Can you commit the code you got, to make sure the version I test is
the same as you are testing?

Here is the test output.  I have not had time to investigate what goes
wrong.  Will look into it tomorrow unless you spot the problem first.

minerva:/# dpkg -i /home/pere/src/debiancvs/popconcvs/popularity-contest_1.45~0.pere.test.1_all.deb
(Reading database ... 211695 files and directories currently installed.)
Preparing to replace popularity-contest 1.44 (using .../popularity-contest_1.45~0.pere.test.1_all.deb) ...
+ dpkg --compare-versions 1.44 le 1.44
+ PKGNAME=popularity-contest
+ CONFFILE=/etc/cron.weekly/popularity-contest
+ NEWCONFFILE=/etc/cron.daily/popularity-contest
+ [ -e /etc/cron.weekly/popularity-contest ]
+ md5sum /etc/cron.weekly/popularity-contest
+ sed -e s/ .*//
+ md5sum=0ad38ce82682b355305057f95fc88da2
+ dpkg-query -W -f=${Conffiles} popularity-contest
+ sed -n -e \' /etc/cron.weekly/popularity-contest '{s/ obsolete$//;s/.* //p}
+ old_md5sum=0ad38ce82682b355305057f95fc88da2
+ [ 0ad38ce82682b355305057f95fc88da2 = 0ad38ce82682b355305057f95fc88da2 ]
+ rm -f /etc/cron.weekly/popularity-contest
Unpacking replacement popularity-contest ...
Setting up popularity-contest (1.45~0.pere.test.1) ...
+ [ -e /etc/popularity-contest.conf ]
+ . /etc/popularity-contest.conf
+ MY_HOSTID=a4c4844e5b9f436ea19df0e85ec96e3a
+ PARTICIPATE=no
+ USEHTTP=yes
+ db_get popularity-contest/participate
+ _db_cmd GET popularity-contest/participate
+ IFS=  printf %s\n GET popularity-contest/participate
+ IFS=
 read -r _db_internal_line
+ RET=false
+ return 0
+ [ false = yes ]
+ [ false = YES ]
+ [ false = true ]
+ PARTICIPATE=no
+ EMPTYID=d41d8cd98f00b204e9800998ecf8427e
+ [ ! -e /etc/popularity-contest.conf ]
+ OLDHOSTID=a4c4844e5b9f436ea19df0e85ec96e3a
+ [ -z  ]
+ select_random_day
+ bash -c echo $(($RANDOM % 7))
+ DAY=0
+ echo DAY="0"
+ sedopts=              s/^PARTICIPATE=.*$/PARTICIPATE="no"/;                   s/^\(MAILTO="erich-survey at debian.org"\)$/#\1/;             s/^\(MAILTO="apenwarr-survey at debian.org"\)$/#\1/;               s/^\(MAILTO="survey at popcon.debian.org"\)$/#\1/;
+ [ a4c4844e5b9f436ea19df0e85ec96e3a != a4c4844e5b9f436ea19df0e85ec96e3a ]
+ sed           s/^PARTICIPATE=.*$/PARTICIPATE="no"/;                   s/^\(MAILTO="erich-survey at debian.org"\)$/#\1/;             s/^\(MAILTO="apenwarr-survey at debian.org"\)$/#\1/;               s/^\(MAILTO="survey at popcon.debian.org"\)$/#\1/;
+ cmp /etc/popularity-contest.conf /etc/popularity-contest.conf.new
+ rm /etc/popularity-contest.conf.new
Processing triggers for man-db ...
minerva:/# ls -ld $(dpkg -L popularity-contest)
ls: cannot access /etc/cron.weekly/popularity-contest: No such file or directory
drwxr-xr-x   22 root root  4096 2008-04-01 18:39 /.
drwxr-xr-x  154 root root 12288 2008-05-06 23:27 /etc
drwxr-xr-x    2 root root  4096 2008-05-06 23:27 /etc/cron.weekly
drwxr-xr-x   14 root root  4096 2008-03-31 06:59 /usr
drwxr-xr-x    2 root root 12288 2008-05-06 23:27 /usr/sbin
-rwxr-xr-x    1 root root   540 2008-05-06 23:23 /usr/sbin/popcon-largest-unused
-rwxr-xr-x    1 root root  4177 2008-05-06 23:23 /usr/sbin/popularity-contest
drwxr-xr-x  284 root root 12288 2008-05-06 23:26 /usr/share
drwxr-xr-x 1776 root root 69632 2008-05-06 23:26 /usr/share/doc
drwxr-xr-x    3 root root  4096 2008-05-06 23:27 /usr/share/doc/popularity-contest
-rw-r--r--    1 root root 12917 2008-05-06 07:55 /usr/share/doc/popularity-contest/changelog.gz
-rw-r--r--    1 root root   783 2003-10-20 23:06 /usr/share/doc/popularity-contest/copyright
drwxr-xr-x    2 root root  4096 2008-05-06 23:27 /usr/share/doc/popularity-contest/examples
-rwxr-xr-x    1 root root  1278 2005-07-16 17:50 /usr/share/doc/popularity-contest/examples/clean-filter
-rwxr-xr-x    1 root root   515 2005-07-15 12:30 /usr/share/doc/popularity-contest/examples/clean-genpkglist
-rwxr-xr-x    1 root root  7167 2008-03-18 09:31 /usr/share/doc/popularity-contest/examples/popanal.py
-rwxr-xr-x    1 root root 13701 2008-05-06 07:47 /usr/share/doc/popularity-contest/examples/popcon.pl
-rwxr-xr-x    1 root root  1220 2006-04-30 12:32 /usr/share/doc/popularity-contest/examples/popcon-process.sh
-rw-r--r--    1 root root  3041 2006-01-08 15:16 /usr/share/doc/popularity-contest/examples/popcon-stat.pl
-rwxr-xr-x    1 root root  2970 2006-04-30 12:31 /usr/share/doc/popularity-contest/examples/popcon-submit.cgi
-rwxr-xr-x    1 root root  1956 2008-04-12 00:56 /usr/share/doc/popularity-contest/examples/prepop.pl
-rw-r--r--    1 root root  1403 2005-07-02 16:43 /usr/share/doc/popularity-contest/examples/README.examples
-rw-r--r--    1 root root  2022 2008-05-06 07:48 /usr/share/doc/popularity-contest/FAQ.gz
-rw-r--r--    1 root root  2390 2006-09-04 18:42 /usr/share/doc/popularity-contest/README.gz
drwxr-xr-x   36 root root  4096 2008-04-26 17:55 /usr/share/man
drwxr-xr-x    2 root root 28672 2008-05-06 23:27 /usr/share/man/man8
-rw-r--r--    1 root root   320 2003-10-19 11:19 /usr/share/man/man8/popcon-largest-unused.8.gz
-rw-r--r--    1 root root   815 2006-07-29 10:36 /usr/share/man/man8/popularity-contest.8.gz
drwxr-xr-x    2 root root  4096 2008-05-06 23:27 /usr/share/popularity-contest
-rw-r--r--    1 root root  1731 2008-05-06 23:23 /usr/share/popularity-contest/default.conf
-rwxr-xr-x    1 root root  3239 2008-05-06 23:23 /usr/share/popularity-contest/popcon-upload
minerva:/#



More information about the Popcon-developers mailing list