ubiquity: test parse sources.list
This commit is contained in:
parent
60f94b2d5f
commit
923cea5d74
2 changed files with 4 additions and 4 deletions
|
|
@ -3,12 +3,11 @@ set -e
|
||||||
|
|
||||||
file="$1"
|
file="$1"
|
||||||
|
|
||||||
# Trisquel: Deb822-first, keep legacy clean
|
|
||||||
: "${ROOT:=/target}"
|
: "${ROOT:=/target}"
|
||||||
SD="$ROOT/etc/apt/sources.list.d"
|
SD="$ROOT/etc/apt/sources.list.d"
|
||||||
SF="$SD/trisquel.sources"
|
SF="$SD/trisquel.sources"
|
||||||
LEGACY="$ROOT/etc/apt/sources.list"
|
|
||||||
MSG="# Trisquel sources have moved to /etc/apt/sources.list.d/trisquel.sources"
|
MSG="# Trisquel sources have moved to /etc/apt/sources.list.d/trisquel.sources"
|
||||||
|
SAVETO="$ROOT/etc/apt/sources.list.new"
|
||||||
mkdir -p "$SD"
|
mkdir -p "$SD"
|
||||||
|
|
||||||
FASTEST=https://archive.trisquel.org/trisquel/
|
FASTEST=https://archive.trisquel.org/trisquel/
|
||||||
|
|
@ -72,6 +71,7 @@ Signed-By: ${SIGNED_BY}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# Keep the legacy file and the pipeline temp file as a single breadcrumb line
|
# Keep the legacy file and the pipeline temp file as a single breadcrumb line
|
||||||
printf '%s\n' "$MSG" > "$LEGACY"
|
: > "$SAVETO"
|
||||||
printf '%s\n' "$MSG" > "$file"
|
printf '%s\n' "$MSG" > "$file"
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@
|
||||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
#
|
#
|
||||||
|
|
||||||
VERSION=43
|
VERSION=43.1
|
||||||
|
|
||||||
. ./config
|
. ./config
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue