From: David Kalnischkies Date: Thu, 14 Jan 2016 13:45:37 +0000 (+0100) Subject: evaluate sourceslist-list-format entity in vendors sources.list X-Git-Tag: 1.2~10 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/7fa4f5e12261d39666283051956d9e1f78eb609b evaluate sourceslist-list-format entity in vendors sources.list Parsing XML entity files in shell isn't exactly nice and causing the substitution with a while-read loop isn't either, but it seems to be good enough for the moment without changing too much. Thanks: Niels Thykier for reporting on IRC --- diff --git a/vendor/debian/apt-vendor.ent b/vendor/debian/apt-vendor.ent index 8b26da385..93e4e0460 100644 --- a/vendor/debian/apt-vendor.ent +++ b/vendor/debian/apt-vendor.ent @@ -6,14 +6,14 @@ - + diff --git a/vendor/debian/sources.list.in b/vendor/debian/sources.list.in index c36fb16a7..0fae88e5e 100644 --- a/vendor/debian/sources.list.in +++ b/vendor/debian/sources.list.in @@ -3,5 +3,5 @@ &sourceslist-list-format; # Uncomment if you want the apt-get source function to work -#deb-src http://ftp.us.debian.org/debian &debian-stable-codename; main contrib non-free +#deb-src http://httpredir.debian.org/debian &debian-stable-codename; main contrib non-free #deb-src http://security.debian.org &debian-stable-codename;/updates main contrib non-free diff --git a/vendor/getinfo b/vendor/getinfo index 415ede98c..79da83620 100755 --- a/vendor/getinfo +++ b/vendor/getinfo @@ -11,7 +11,7 @@ if [ -z "$INFO" ] || [ ! -e "$INFO" ]; then fi getrawfield() { - grep --max-count=1 "^ $@ + > $@ clean: clean/sources.list +veryclean: clean/sources.list clean/sources.list: rm -f sources.list