On Sun, Jul 26, 2026 at 07:30:11PM +0100, Richard Lewis wrote:
> > Specifically for the timer:
> > 1/ the report need to be sent about once a week at some random time to
> > minimize congestion
> > on the server side.
> >
> > 2/ if the host is not powered or not online at the time the report is to be
> > sent, sending the report need to be retried later, about one time per day.
> >
> > This is done currently by the /etc/cron.daily/popularity-contest running
> > every
> > day at some time determined randomly at installation time in
> > /etc/cron.d/popularity-contest.
> >
> 
> I think this is actually  fairly simple:  as you've already implemented
> this in the cron script,  we just need to ensure systemd and cron can
> coexist
> 
> my only questions are: 1..s there any way to test this  - i think there are
> no tests in the package at all, but is there maybe some option i can pass
> to output the report not actually send it?

Sorry! What do you want to test ?

You can run /usr/sbin/popularity-contest manually.
You can change the day in /etc/popularity-contest.conf
and run /etc/cron.daily/popularity-contest 
There is a log in /var/log/popularity-contest

> and 2. how do i even build the package?
> 
> i did a git clone and "gbp buildpackage" and it failed with:
> 
>                      install -m 644 debian-popcon.gpg
> debian/popularity-contest/usr/share/popularity-contest/
>     install: cannot stat 'debian-popcon.gpg': No such file or directory
> 
> there's no .gpg file in the repository... what am i missing?

The official debian-popcon.gpg file is the Debian source tarball.

Cheers,
Bill.

Reply via email to