From e4077b2bbf4177ff375c57ae77e467b43729b598 Mon Sep 17 00:00:00 2001 From: Michael Shigorin Date: Fri, 12 Dec 2014 15:14:42 +0300 Subject: [PATCH] live: fix broken regexp to actually enable repos The problem with hardwired "[alt]" was that it's not going to match "[p7]", for example. Brown paper bag bug. --- features.in/live/live/image-scripts.d/60-apt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features.in/live/live/image-scripts.d/60-apt b/features.in/live/live/image-scripts.d/60-apt index 80195423..94e12a21 100755 --- a/features.in/live/live/image-scripts.d/60-apt +++ b/features.in/live/live/image-scripts.d/60-apt @@ -6,5 +6,5 @@ PROTO="${GLOBAL_LIVE_REPO%/*}" # http, ftp, rsync MIRROR="${GLOBAL_LIVE_REPO#*/}" # alt, heanet, kiev, yandex, ... -sed -i "s,^#\(rpm \[alt\] ${PROTO:-http}.*\),\1," \ +sed -i "s,^#\(rpm \[.*\] ${PROTO:-http}.*\),\1," \ "/etc/apt/sources.list.d/${MIRROR:-alt}.list"