Skip to content

Commit

Permalink
also use /etc/apt/source.list.d/* files
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Lange committed Sep 24, 2015
1 parent 4b5136c commit d7b5595
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/fai-mirror
Expand Up @@ -252,6 +252,9 @@ fi

# TODO: use -p to preserve sources.list
sed -e 's/file:/copy:/' $cfdir/apt/sources.list >> $aptcache/etc/apt/sources.list
if [ "$(ls -A $cfdir/apt/sources.list.d/)" ]; then
sed -e 's/file:/copy:/' $cfdir/apt/sources.list.d/* >> $aptcache/etc/apt/sources.list
else

echo "Getting package information"
apt-get $qflag $aptoptions update >/dev/null
Expand Down

0 comments on commit d7b5595

Please sign in to comment.