diff -Nru apt-show-versions-0.22.12+nmu1/apt-show-versions.bash_completion apt-show-versions-0.22.13/apt-show-versions.bash_completion --- apt-show-versions-0.22.12+nmu1/apt-show-versions.bash_completion 2021-10-05 23:39:04.000000000 +0000 +++ apt-show-versions-0.22.13/apt-show-versions.bash_completion 1970-01-01 00:00:00.000000000 +0000 @@ -1,51 +0,0 @@ -#-*-shell-script-*- - -_have apt-show-versions && -_apt_show_versions() -{ - local cur prev opts - - COMPREPLY=() - cur="${COMP_WORDS[COMP_CWORD]}" - if [[ "$cur" == --*=* ]] - then - prev="${cur%=*}" - cur="${cur##*=}" - else - prev="${COMP_WORDS[COMP_CWORD-1]}" - fi - - opts="-a --allversions -b --brief -h --help -i --initialize -ld --list-dir" - opts="$opts -nh --nohold -p --package -r --regex -stf --status-file" - opts="$opts -u --upgradeable -v --verbose" - - # Look for options needing an argument. - # The used completion functions are defined in /etc/bash_completion. - case "$prev" in - -ld|--list-dir) - _filedir -d - return 0 - ;; - -p|--package) - COMPREPLY=( $( apt-cache --no-generate pkgnames "$cur" 2> /dev/null ) ) - return 0 - ;; - -stf|--status-file) - _filedir - return 0 - ;; - *) - ;; - esac - - # Look for options without an argument. - if [[ "$cur" == -* ]] - then - COMPREPLY=( $(compgen -W "$opts" -- $cur) ) - return 0 - else - COMPREPLY=( $( apt-cache --no-generate pkgnames "$cur" 2> /dev/null ) ) - return 0 - fi -} -complete -F _apt_show_versions -o filenames apt-show-versions diff -Nru apt-show-versions-0.22.12+nmu1/debian/apt-show-versions.bash-completion apt-show-versions-0.22.13/debian/apt-show-versions.bash-completion --- apt-show-versions-0.22.12+nmu1/debian/apt-show-versions.bash-completion 1970-01-01 00:00:00.000000000 +0000 +++ apt-show-versions-0.22.13/debian/apt-show-versions.bash-completion 2021-10-26 09:45:47.000000000 +0000 @@ -0,0 +1,51 @@ +#-*-shell-script-*- + +_have apt-show-versions && +_apt_show_versions() +{ + local cur prev opts + + COMPREPLY=() + cur="${COMP_WORDS[COMP_CWORD]}" + if [[ "$cur" == --*=* ]] + then + prev="${cur%=*}" + cur="${cur##*=}" + else + prev="${COMP_WORDS[COMP_CWORD-1]}" + fi + + opts="-a --allversions -b --brief -h --help -i --initialize -ld --list-dir" + opts="$opts -nh --nohold -p --package -r --regex -stf --status-file" + opts="$opts -u --upgradeable -v --verbose" + + # Look for options needing an argument. + # The used completion functions are defined in /etc/bash_completion. + case "$prev" in + -ld|--list-dir) + _filedir -d + return 0 + ;; + -p|--package) + COMPREPLY=( $( apt-cache --no-generate pkgnames "$cur" 2> /dev/null ) ) + return 0 + ;; + -stf|--status-file) + _filedir + return 0 + ;; + *) + ;; + esac + + # Look for options without an argument. + if [[ "$cur" == -* ]] + then + COMPREPLY=( $(compgen -W "$opts" -- $cur) ) + return 0 + else + COMPREPLY=( $( apt-cache --no-generate pkgnames "$cur" 2> /dev/null ) ) + return 0 + fi +} +complete -F _apt_show_versions -o filenames apt-show-versions diff -Nru apt-show-versions-0.22.12+nmu1/debian/apt-show-versions.service apt-show-versions-0.22.13/debian/apt-show-versions.service --- apt-show-versions-0.22.12+nmu1/debian/apt-show-versions.service 1970-01-01 00:00:00.000000000 +0000 +++ apt-show-versions-0.22.13/debian/apt-show-versions.service 2021-10-26 09:45:47.000000000 +0000 @@ -0,0 +1,13 @@ +[Unit] +Description=Daily apt-show-versions index rebuild +Documentation=man:apt-show-versions(8) +ConditionACPower=true + +[Service] +Type=oneshot +ExecStart=/etc/cron.daily/apt-show-versions systemd-timer + +# performance options +Nice=19 +IOSchedulingClass=best-effort +IOSchedulingPriority=7 \ No newline at end of file diff -Nru apt-show-versions-0.22.12+nmu1/debian/apt-show-versions.timer apt-show-versions-0.22.13/debian/apt-show-versions.timer --- apt-show-versions-0.22.12+nmu1/debian/apt-show-versions.timer 1970-01-01 00:00:00.000000000 +0000 +++ apt-show-versions-0.22.13/debian/apt-show-versions.timer 2021-10-26 09:45:47.000000000 +0000 @@ -0,0 +1,11 @@ +[Unit] +Description=Daily apt-show-versions index rebuild +Documentation=man:apt-show-versions(8) + +[Timer] +OnCalendar=daily +AccuracySec=12h +Persistent=true + +[Install] +WantedBy=timers.target \ No newline at end of file diff -Nru apt-show-versions-0.22.12+nmu1/debian/changelog apt-show-versions-0.22.13/debian/changelog --- apt-show-versions-0.22.12+nmu1/debian/changelog 2021-10-05 23:39:04.000000000 +0000 +++ apt-show-versions-0.22.13/debian/changelog 2021-10-26 09:45:47.000000000 +0000 @@ -1,3 +1,19 @@ +apt-show-versions (0.22.13) unstable; urgency=medium + + [ Debian Janitor ] + * Trim trailing whitespace. + * Bump debhelper from old 12 to 13. + * Remove constraints unnecessary since buster: + + apt-show-versions: Drop versioned constraint on libapt-pkg-perl in + Depends. + + [ Christoph Martin ] + * add systemd timer for cron.daily (closes: #996967) + * convert debian/rules to dh sequenzer + * bump Standards-Version (no changes) + + -- Christoph Martin Tue, 26 Oct 2021 11:45:47 +0200 + apt-show-versions (0.22.12+nmu1) unstable; urgency=medium * Non-maintainer upload @@ -423,5 +439,3 @@ * Closes: Bug#122387 -- Christoph Martin Tue, 4 Dec 2001 16:02:17 +0100 - - diff -Nru apt-show-versions-0.22.12+nmu1/debian/control apt-show-versions-0.22.13/debian/control --- apt-show-versions-0.22.12+nmu1/debian/control 2021-10-05 23:39:04.000000000 +0000 +++ apt-show-versions-0.22.13/debian/control 2021-10-26 09:45:47.000000000 +0000 @@ -3,15 +3,15 @@ Priority: optional Maintainer: Christoph Martin Uploaders: Andreas Hoenen -Build-Depends: debhelper-compat (= 12), libpod-parser-perl +Build-Depends: debhelper-compat (= 13), libpod-parser-perl, bash-completion Build-Depends-Indep: po4a -Standards-Version: 3.9.8 +Standards-Version: 4.5.1 Vcs-Browser: https://salsa.debian.org/debian/apt-show-versions Vcs-Git: https://salsa.debian.org/debian/apt-show-versions.git Package: apt-show-versions Architecture: all -Depends: ${misc:Depends}, ${perl:Depends} | perl-5.005 | perl-5.004, apt, libapt-pkg-perl (>= 0.1.21), libstorable-perl +Depends: ${misc:Depends}, ${perl:Depends} | perl-5.005 | perl-5.004, apt, libapt-pkg-perl, libstorable-perl Description: lists available package versions with distribution apt-show-versions parses the dpkg status file and the APT lists for the installed and available package versions and distribution and diff -Nru apt-show-versions-0.22.12+nmu1/debian/cron.daily apt-show-versions-0.22.13/debian/cron.daily --- apt-show-versions-0.22.12+nmu1/debian/cron.daily 2021-10-05 23:39:04.000000000 +0000 +++ apt-show-versions-0.22.13/debian/cron.daily 2021-10-26 09:45:47.000000000 +0000 @@ -1,5 +1,12 @@ #!/bin/sh +EX4SYSTEMDTIMER=$1 + +# skip in favour of systemd timer if called from cron.daily +if [ -d /run/systemd/system ] && [ "$EX4SYSTEMDTIMER" != "systemd-timer" ]; then + exit 0 +fi + [ -f /usr/bin/apt-show-versions ] || exit 0 apt-show-versions -i diff -Nru apt-show-versions-0.22.12+nmu1/debian/rules apt-show-versions-0.22.13/debian/rules --- apt-show-versions-0.22.12+nmu1/debian/rules 2021-10-05 23:39:04.000000000 +0000 +++ apt-show-versions-0.22.13/debian/rules 2021-10-26 09:45:47.000000000 +0000 @@ -5,20 +5,26 @@ # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 -configure: configure-stamp -configure-stamp: - dh_testdir +%: + dh $@ + +#configure: configure-stamp +#configure-stamp: +# dh_testdir # Add here commands to configure the package. - perl Makefile.PL INSTALLDIRS=vendor +# perl Makefile.PL INSTALLDIRS=vendor - touch configure-stamp +# touch configure-stamp -build: build-arch build-indep -build-arch: build-stamp -build-indep: build-stamp -build-stamp: configure-stamp - dh_testdir +#build: build-arch build-indep +#build-arch: build-stamp +#build-indep: build-stamp +#build-stamp: configure-stamp +# dh_testdir + +override_dh_auto_build: + perl Makefile.PL INSTALLDIRS=vendor # Add here commands to compile the package. $(MAKE) @@ -29,53 +35,56 @@ do echo Manifying $$i;\ pod2man --utf8 -v $$i `echo $$i | sed "s/pod//"`1;\ done - touch build-stamp +# touch build-stamp -clean: - dh_testdir - dh_testroot - rm -f build-stamp configure-stamp +#clean: +# dh_testdir +# dh_testroot +# rm -f build-stamp configure-stamp +override_dh_auto_clean: # Add here commands to clean up after the build process. [ ! -f Makefile ] || $(MAKE) realclean rm -f man/apt-show-versions.* man/po/apt-show-versions.pot dh_clean -install: build - dh_testdir - dh_testroot - dh_prep - dh_installdirs +#install: build +# dh_testdir +# dh_testroot +# dh_prep +# dh_installdirs +override_dh_auto_install: # Add here commands to install the package into debian/apt-show-versions. $(MAKE) install DESTDIR=$(CURDIR)/debian/apt-show-versions/ rm -fr debian/apt-show-versions/usr/lib debian/apt-show-versions/usr/share/perl5 install -D --mode=644 debian/apt-show-versions.apt.conf \ $(CURDIR)/debian/apt-show-versions/etc/apt/apt.conf.d/20apt-show-versions + dh_bash-completion # Build architecture-independent files here. -binary-indep: build install - dh_testdir - dh_testroot - dh_installdocs - dh_installcron +#binary-indep: build install +# dh_testdir +# dh_testroot +# dh_installdocs +# dh_installcron dh_installman man/apt-show-versions.*.1 - dh_installchangelogs - install --preserve-timestamps --mode=644 \ - apt-show-versions.bash_completion \ - $(CURDIR)/debian/apt-show-versions/usr/share/bash-completion/completions/apt-show-versions - dh_compress - dh_fixperms - dh_installdeb - dh_perl - dh_gencontrol - dh_md5sums - dh_builddeb +# dh_installchangelogs +# install --preserve-timestamps --mode=644 \ +# apt-show-versions.bash_completion \ +# $(CURDIR)/debian/apt-show-versions/usr/share/bash-completion/completions/apt-show-versions +# dh_compress +# dh_fixperms +# dh_installdeb +# dh_perl +# dh_gencontrol +# dh_md5sums +# dh_builddeb # Build architecture-dependent files here. -binary-arch: build install +#binary-arch: build install # We have nothing to do by default. -binary: binary-indep binary-arch -.PHONY: build build-arch build-indep clean binary-indep binary-arch binary install configure +#binary: binary-indep binary-arch +#.PHONY: build build-arch build-indep clean binary-indep binary-arch binary install configure