Browse Source

d1src-vcheck: add -i and -I options to skip some srcpackages or suites.

suites/unstable
Mark Hindley 7 months ago
parent
commit
236050bc0f
  1. 8
      man/d1src-vcheck.1
  2. 7
      src/d1src-vcheck

8
man/d1src-vcheck.1

@ -8,9 +8,15 @@ d1src\-vcheck \- Check Devuan source versions against Debian
\fBd1src\-vcheck\fP [\fIoption\fP] [\fIsrcpackage...\fP]
.SH OPTIONS
.TP
.TP 16
\fB\-a\fP
Also check end\-of\-life (EOL) archived suites.
.TP
\fB\-i\fP <srcpackage>\fP
Ignore source package
.TP
\fB\-I\fP <suite>\fP
Ignore suite
.SH DESCRIPTION
.PP

7
src/d1src-vcheck

@ -55,10 +55,12 @@ get_versions()
}
# parse command line
while getopts a opt
while getopts ai:I: opt
do
case $opt in
a) include_archived=$opt;;
i) ign_src=$(echo $ign_src $OPTARG);;
I) ign_suite=$(echo $ign_suite $OPTARG);;
\?) echo "$0 [ -a ] [ source... ]"; exit 1;;
esac
done
@ -69,6 +71,7 @@ sources=${@:-$(dpkg-parsechangelog -S Source)}
for src in $sources
do
echo $ign_src | grep -q --word-regexp $src && continue
devuan=$(get_versions $src $DEVUAN_DAK_API_URL/madison)
[ -z "$devuan" ] && \
echo WARNING: no Devuan versions found for src:$src >&2 && \
@ -80,12 +83,14 @@ do
for s in $(echo "$devuan" | awk '$1 !~ /-/ {print $1}' | sort -u) # Parent suites
do
echo $ign_suite | grep -q --word-regexp $s && continue
: "${valid_suites:=$(devuan_suites)}"
bi_s=$(debian_equivalent "$s" "$valid_suites")
[ -z "$bi_s" ] && continue
for chld in '' '-proposed-updates' '-security' '-backports'
do
echo $ign_suite | grep -q --word-regexp $s$chld && continue
if [ "$chld" = '-proposed-updates' ]
then
udd_s="${bi_s}-p-u" # UDD uses different name!

Loading…
Cancel
Save