Skip to content

Commit

Permalink
Create "xyz.sources-list" files in "build.sh" as well (with the conte…
Browse files Browse the repository at this point in the history
…nts of "/etc/apt/sources.list")
  • Loading branch information
tianon committed May 30, 2017
1 parent 12cae69 commit ec66e40
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,10 @@ docker run \
echo "$epoch" > "$targetBase.debuerreotype-epoch"
touch_epoch "$targetBase.manifest" "$targetBase.debuerreotype-epoch"
for f in debian_version os-release; do
cp "$rootfs/etc/$f" "$targetBase.$f"
touch_epoch "$targetBase.$f"
for f in debian_version os-release apt/sources.list; do
targetFile="$targetBase.$(basename "$f" | sed -r "s/[^a-zA-Z0-9_-]+/-/g")"
cp "$rootfs/etc/$f" "$targetFile"
touch_epoch "$targetFile"
done
done
} >&2
Expand Down

0 comments on commit ec66e40

Please sign in to comment.