Skip to content

Commit 0fa6197

Browse files
authored
packages: support to skip downloading fluent-package (#901)
e.g export SKIP_FLUENT_PACKAGE=1 There is a case that want to release fluent-apt-source, fluent-release and so on. Signed-off-by: Kentaro Hayashi <[email protected]>
1 parent 4eee878 commit 0fa6197

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

fluent-package/manage-fluent-repositories.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,16 @@ EOF
217217
package=$(echo $line | cut -d' ' -f1)
218218
download_url=$(echo $line | cut -d' ' -f3)
219219
echo "Downloading $package.zip from $download_url"
220+
if [ -n "$SKIP_FLUENT_PACKAGE" ]; then
221+
case $package in
222+
packages-lts*|packages-apt*|packages-release*)
223+
# fluent-apt-source, fluent-lts-*, fluent-release
224+
;;
225+
*)
226+
continue
227+
;;
228+
esac
229+
fi
220230
case $package in
221231
*debian*|*ubuntu*)
222232
mkdir -p apt/repositories
@@ -245,6 +255,16 @@ EOF
245255
do
246256
package=$(echo $line | cut -d' ' -f1)
247257
download_size=$(echo $line | cut -d' ' -f2)
258+
if [ -n "$SKIP_FLUENT_PACKAGE" ]; then
259+
case $package in
260+
packages-lts*|packages-apt*|packages-release*)
261+
# fluent-apt-source, fluent-lts-*, fluent-release
262+
;;
263+
*)
264+
continue
265+
;;
266+
esac
267+
fi
248268
case $package in
249269
*debian*|*ubuntu*)
250270
actual_size=$(stat --format="%s" apt/repositories/$package.zip)

0 commit comments

Comments
 (0)