Skip to content

Commit

Permalink
Skip centos5 and 6.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Oct 1, 2016
1 parent d765055 commit c98bd54
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tools/gen-dists.sh
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ for URL in ${DEB_URLS[@]}; do
if [ "$RELEASE" != "$DEB_RELEASE" ]; then
continue;
fi
if [ "$RELEASE" == "6.6.0" ]; then
if [ "$VERSION" == "6.6.0" ]; then
# Skip broken package upstream
continue;
fi
Expand Down Expand Up @@ -151,6 +151,9 @@ for DIST in ${EL_DISTS[@]}; do
# Load in the cached list of releases
RELEASES=$(cat "$DIR/gen_dists/${DIST}_release")
for RELEASE in $RELEASES; do
if [ "$DIST" == "centos" -a "$RELEASE" == "5" ]; then
continue;
fi
# For each distribution and release, download it's list of .rpms
for URL in ${EL_URLS[@]}; do
# Generate the URL that the files should live in
Expand Down Expand Up @@ -179,6 +182,10 @@ for DIST in ${EL_DISTS[@]}; do

# Get the Node.js version from the package name
VERSION=$(echo $RPM | cut -d "-" -f 2)
if [ "$VERSION" == "6.6.0" ]; then
# Skip broken package upstream
continue;
fi
echo "dists['$DIST']['$RELEASE']['$PLATFORM']['$VERSION'] = {url: '$DIST_URL', rpm: '$RPM'}"
done
done
Expand Down

0 comments on commit c98bd54

Please sign in to comment.