Skip to content
This repository was archived by the owner on Sep 1, 2022. It is now read-only.

Commit 704ea1e

Browse files
josephfrazierjontewks
authored andcommitted
Don't use deprecated apt-get --force-yes (jontewks#30) (jontewks#31)
I noticed in my heroku build log that there's a bunch of `apt-get` warnings like this: ``` W: --force-yes is deprecated, use one of the options starting with --allow instead. ``` It looks like this line is the one responsible: https://github.com/jontewks/puppeteer-heroku-buildpack/blob/22c5b5960775a5befb89e8b9a1014bc8c1187e3f/bin/compile#L56 According to the [`apt-get` man page](https://manpages.debian.org/stretch/apt/apt-get.8.en.html), we can use `--allow-downgrades --allow-remove-essential --allow-change-held-packages` instead. Fixes jontewks#29
1 parent 0ee66b7 commit 704ea1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/compile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ for PACKAGE in $PACKAGES; do
5353
curl -s -L -z $PACKAGE_FILE -o $PACKAGE_FILE $PACKAGE 2>&1 | indent
5454
else
5555
topic "Fetching .debs for $PACKAGE"
56-
apt-get $APT_OPTIONS -y --force-yes -d install --reinstall $PACKAGE | indent
56+
apt-get $APT_OPTIONS -y --allow-downgrades --allow-remove-essential --allow-change-held-packages -d install --reinstall $PACKAGE | indent
5757
fi
5858
done
5959

0 commit comments

Comments
 (0)