From 7fa4f5e12261d39666283051956d9e1f78eb609b Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Thu, 14 Jan 2016 14:45:37 +0100 Subject: [PATCH] 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 --- vendor/debian/apt-vendor.ent | 8 ++++---- vendor/debian/sources.list.in | 2 +- vendor/getinfo | 2 +- vendor/makefile | 5 ++++- vendor/vendor.makefile | 11 +++++++++-- 5 files changed, 19 insertions(+), 9 deletions(-) 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 -- 2.45.2