Hi,
the attached patch fixes the first one to also match sources with
slashes in their distribution name (e.g. lenny/volatile).
Hannes
-------- Original Message --------
Subject: Re: Bug#542541: please add rules for apt-file
From: Marc Haber <mh+debian-packa...@zugschlus.de>
To: Hannes von Haugwitz <han...@vonhaugwitz.com>,
542...@bugs.debian.org, 542541-submit...@bugs.debian.org
Date: Sun Aug 30 2009 13:38:57 GMT+0200 (CEST)
tags #542541 confirmed pending
thanks
On Thu, Aug 20, 2009 at 08:41:12AM +0200, Hannes von Haugwitz wrote:
the attached patch adds a script which generates rules for apt-file.
Committed to svn. Thanks.
Greetings
Marc
Index: debian/aide.conf.d/31_aide_apt-file
===================================================================
--- debian/aide.conf.d/31_aide_apt-file (revision 782)
+++ debian/aide.conf.d/31_aide_apt-file (working copy)
@@ -7,7 +7,7 @@
HOST="$(echo $uri | sed 's|.*//\([^/[:space:]]\+\).*|\1|')"
HOSTPATH="$(echo $uri | sed 's|.*//[^/[:space:]]\+/\?||;s|/$||;s|/|_|g;s|^\(.\+\)$|_\1|')"
if [ "$PROTOCOL" = "http" ] || [ "$PROTOCOL" = "ftp" ]; then
- echo "/var/cache/apt/apt-file/"${HOST//\./\\\.}${HOSTPATH}"_dists_"${dist}"_Contents-@@{ARCH}\.(gz|IndexDiff)$ VarFile"
+ echo "/var/cache/apt/apt-file/"${HOST//\./\\\.}${HOSTPATH}"_dists_"${dist//\//_}"_Contents-@@{ARCH}\.(gz|IndexDiff)$ VarFile"
fi
done < $SOURCESLIST