From 191918027c1971bfb871abb438c4917e5b98bb74 Mon Sep 17 00:00:00 2001 From: Patrick Schleizer Date: Mon, 27 Feb 2017 23:43:02 +0000 Subject: [PATCH] adjust apt-get-wrapper for Debian stretch's apt-get --- usr/lib/security-misc/apt-get-wrapper | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/usr/lib/security-misc/apt-get-wrapper b/usr/lib/security-misc/apt-get-wrapper index 8623719..beba026 100755 --- a/usr/lib/security-misc/apt-get-wrapper +++ b/usr/lib/security-misc/apt-get-wrapper @@ -32,6 +32,8 @@ fi log="$(cat "$logfile")" +## W: Target Contents-deb-legacy (Contents-all) is configured multiple times in /etc/apt/sources.list:1 and /etc/apt/sources.list:2' + while read -r -d $'\n' line; do line_lower_case="${line,,}" first_two="${line_lower_case:0:2}" @@ -39,14 +41,11 @@ while read -r -d $'\n' line; do exit 125 fi if [ "$first_two" = "w:" ]; then - first_twelve="${line_lower_case:0:12}" - if [ "$first_twelve" = "w: duplicate" ]; then - continue - fi - skip_summary_line="W: You may want to run apt-get update to correct these problems" - skip_summary_line_lower_case="${skip_summary_line,,}" - if [ "$line_lower_case" = "$skip_summary_line_lower_case" ]; then - continue + first_nine="${line_lower_case:0:9}" + if [ "$first_nine" = "w: target" ]; then + if echo "$line" | grep -q "is configured multiple times in" ; then + continue + fi fi exit 125 fi