summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2010-02-14 16:00:48 +0100
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:17:04 +0100
commit19e9cf8331ff19dadb412841f971ece5c6e52d79 (patch)
treebfcc4a4ce7f91edc027f2c2be00acd92fb4db0cb
parent40c5cf8d4af678bded1e27a567d149f45cf54d19 (diff)
downloadvyos-live-build-19e9cf8331ff19dadb412841f971ece5c6e52d79.tar.gz
vyos-live-build-19e9cf8331ff19dadb412841f971ece5c6e52d79.zip
Also using sources.list snipplets for local packages just as for the other repositories (Closes: #569619).
-rwxr-xr-xhelpers/chroot_sources7
1 files changed, 3 insertions, 4 deletions
diff --git a/helpers/chroot_sources b/helpers/chroot_sources
index 81c02681f..6edc3ac9a 100755
--- a/helpers/chroot_sources
+++ b/helpers/chroot_sources
@@ -218,10 +218,8 @@ case "${1}" in
fi
fi
- # Add to sources.list
- echo "" >> chroot/etc/apt/sources.list
- echo "# Local packages" >> chroot/etc/apt/sources.list
- echo "deb file:/root/local-packages ./" >> chroot/etc/apt/sources.list
+ # Add to sources.list.d
+ echo "deb file:/root/local-packages ./" > chroot/etc/apt/sources.list.d/local-packages.list
# Removing depends
Remove_package
@@ -448,6 +446,7 @@ case "${1}" in
fi
# Remove local package repository
+ rm -f chroot/etc/apt/sources.list.d/local-packages.list
rm -rf chroot/root/local-packages
# Remove local packages key if it exists