Merge "restapi-doc wadl based package removal"
This commit is contained in:
commit
f96953860e
|
@ -12,11 +12,10 @@
|
||||||
# by the StarlingX building system recipes.
|
# by the StarlingX building system recipes.
|
||||||
|
|
||||||
# input files:
|
# input files:
|
||||||
# The files tarball-dl.lst and mvn-artifacts.lst contain the list of packages
|
# The file tarball-dl.lst contains the list of packages and artifacts for
|
||||||
# and artifacts for building this sub-mirror.
|
# building this sub-mirror.
|
||||||
script_path="$(dirname $(readlink -f $0))"
|
script_path="$(dirname $(readlink -f $0))"
|
||||||
tarball_file="$script_path/tarball-dl.lst"
|
tarball_file="$script_path/tarball-dl.lst"
|
||||||
mvn_artf_file="$script_path/mvn-artifacts.lst"
|
|
||||||
|
|
||||||
DL_TARBALL_DIR="$(dirname "$(readlink -f "${BASH_SOURCE[0]}" )" )"
|
DL_TARBALL_DIR="$(dirname "$(readlink -f "${BASH_SOURCE[0]}" )" )"
|
||||||
|
|
||||||
|
@ -97,8 +96,8 @@ done
|
||||||
shift $((OPTIND-1))
|
shift $((OPTIND-1))
|
||||||
|
|
||||||
|
|
||||||
if [ ! -e $tarball_file -o ! -e $mvn_artf_file ];then
|
if [ ! -e $tarball_file ]; then
|
||||||
echo "$download_list does not exist, please have a check!"
|
echo "$tarball_file does not exist, please have a check!"
|
||||||
exit -1
|
exit -1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -273,61 +272,6 @@ for line in $(cat $tarball_file); do
|
||||||
tar czvf $tarball_name $directory_name
|
tar czvf $tarball_name $directory_name
|
||||||
rm -rf $directory_name
|
rm -rf $directory_name
|
||||||
popd # pushd $directory_name
|
popd # pushd $directory_name
|
||||||
# The mvn.repo.tgz tarball will be created downloading a serie of
|
|
||||||
# of maven artifacts described in mvn-artifacts file.
|
|
||||||
elif [ "$tarball_name" = "mvn.repo.tgz" ]; then
|
|
||||||
mkdir -p "$directory_name"
|
|
||||||
if [ ! -f "$mvn_artf_file" ]; then
|
|
||||||
echo "$mvn_artf_file no found" 1>&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
success_all=0
|
|
||||||
while read -r artf; do
|
|
||||||
echo "download: $(basename $artf)"
|
|
||||||
success=1
|
|
||||||
for dl_src in $dl_source; do
|
|
||||||
case $dl_src in
|
|
||||||
$dl_from_stx_mirror)
|
|
||||||
url="$(url_to_stx_mirror_url "$tarball_url/$artf" "$distro")"
|
|
||||||
;;
|
|
||||||
$dl_from_upstream)
|
|
||||||
url="$tarball_url/$artf"
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
echo "Error: Unknown dl_source '$dl_src'"
|
|
||||||
continue
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
wget "$url" -P "$directory_name/$(dirname $artf)"
|
|
||||||
if [ $? -eq 0 ]; then
|
|
||||||
success=0
|
|
||||||
break
|
|
||||||
else
|
|
||||||
echo "Warning: Failed to download from $url"
|
|
||||||
continue;
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
if [ $success -ne 0 ]; then
|
|
||||||
success_all=1
|
|
||||||
echo "Error: Failed to download from '$tarball_url/$artf'"
|
|
||||||
fi
|
|
||||||
done < "$mvn_artf_file"
|
|
||||||
|
|
||||||
if [ $success_all -ne 0 ]; then
|
|
||||||
echo "Error: Failed to download one or more components from '$tarball_url'"
|
|
||||||
echo "$tarball_url" > "$output_log"
|
|
||||||
error_count=$((error_count + 1))
|
|
||||||
popd # pushd $output_tarball
|
|
||||||
continue
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Create tarball
|
|
||||||
tar -zcvf "$tarball_name" -C "$directory_name"/ .
|
|
||||||
rm -rf "$directory_name"
|
|
||||||
mv "$tarball_name" "$download_directory"
|
|
||||||
elif [[ "$tarball_name" =~ ^'MLNX_OFED_LINUX' ]]; then
|
elif [[ "$tarball_name" =~ ^'MLNX_OFED_LINUX' ]]; then
|
||||||
pkg_version=$(echo "$tarball_name" | cut -d "-" -f2-3)
|
pkg_version=$(echo "$tarball_name" | cut -d "-" -f2-3)
|
||||||
srpm_path="MLNX_OFED_SRC-${pkg_version}/SRPMS/"
|
srpm_path="MLNX_OFED_SRC-${pkg_version}/SRPMS/"
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -799,8 +799,6 @@ mailcap-2.1.41-2.el7.noarch.rpm
|
||||||
mailx-12.5-19.el7.x86_64.rpm
|
mailx-12.5-19.el7.x86_64.rpm
|
||||||
make-3.82-23.el7.x86_64.rpm
|
make-3.82-23.el7.x86_64.rpm
|
||||||
man-db-2.6.3-9.el7.x86_64.rpm
|
man-db-2.6.3-9.el7.x86_64.rpm
|
||||||
maven-3.0.5-17.el7.noarch.rpm
|
|
||||||
maven-wagon-2.4-3.el7.noarch.rpm
|
|
||||||
mcstrans-0.3.4-5.el7.x86_64.rpm
|
mcstrans-0.3.4-5.el7.x86_64.rpm
|
||||||
mdadm-4.0-13.el7.x86_64.rpm
|
mdadm-4.0-13.el7.x86_64.rpm
|
||||||
mdi-common-1.4.57.0-4.el7.noarch.rpm
|
mdi-common-1.4.57.0-4.el7.noarch.rpm
|
||||||
|
|
|
@ -19,7 +19,6 @@ lldpd-0.9.0.tar.gz#lldpd-0.9.0#https://media.luffy.cx/files/lldpd/lldpd-0.9.0.ta
|
||||||
!MLNX_OFED_LINUX-4.2-1.2.0.0-rhel7.4-x86_64.tgz#MLNX_OFED_LINUX-4.2-1.2.0.0-rhel7.4-x86_64#http://www.mellanox.com/downloads/ofed/MLNX_OFED-4.2-1.2.0.0/MLNX_OFED_LINUX-4.2-1.2.0.0-rhel7.4-x86_64.tgz#http_script##post-dl-script/MLNX_OFED.sh
|
!MLNX_OFED_LINUX-4.2-1.2.0.0-rhel7.4-x86_64.tgz#MLNX_OFED_LINUX-4.2-1.2.0.0-rhel7.4-x86_64#http://www.mellanox.com/downloads/ofed/MLNX_OFED-4.2-1.2.0.0/MLNX_OFED_LINUX-4.2-1.2.0.0-rhel7.4-x86_64.tgz#http_script##post-dl-script/MLNX_OFED.sh
|
||||||
!MLNX_OFED_LINUX-4.3-1.0.1.0-rhel7.4-x86_64.tgz#MLNX_OFED_LINUX-4.3-1.0.1.0-rhel7.4-x86_64#http://www.mellanox.com/downloads/ofed/MLNX_OFED-4.3-1.0.1.0/MLNX_OFED_LINUX-4.3-1.0.1.0-rhel7.4-x86_64.tgz#http_script##post-dl-script/MLNX_OFEDqat1.7.sh
|
!MLNX_OFED_LINUX-4.3-1.0.1.0-rhel7.4-x86_64.tgz#MLNX_OFED_LINUX-4.3-1.0.1.0-rhel7.4-x86_64#http://www.mellanox.com/downloads/ofed/MLNX_OFED-4.3-1.0.1.0/MLNX_OFED_LINUX-4.3-1.0.1.0-rhel7.4-x86_64.tgz#http_script##post-dl-script/MLNX_OFEDqat1.7.sh
|
||||||
!MLNX_OFED_LINUX-4.3-3.0.2.1-rhel7.5-x86_64.tgz#MLNX_OFED_LINUX-4.3-3.0.2.1-rhel7.5-x86_64#http://www.mellanox.com/downloads/ofed/MLNX_OFED-4.3-3.0.2.1/MLNX_OFED_LINUX-4.3-3.0.2.1-rhel7.5-x86_64.tgz#http_script##post-dl-script/MLNX_OFEDqat1.7.sh
|
!MLNX_OFED_LINUX-4.3-3.0.2.1-rhel7.5-x86_64.tgz#MLNX_OFED_LINUX-4.3-3.0.2.1-rhel7.5-x86_64#http://www.mellanox.com/downloads/ofed/MLNX_OFED-4.3-3.0.2.1/MLNX_OFED_LINUX-4.3-3.0.2.1-rhel7.5-x86_64.tgz#http_script##post-dl-script/MLNX_OFEDqat1.7.sh
|
||||||
!mvn.repo.tgz#mvn#https://repo.maven.apache.org/maven2#http_filelist#mvn-artifacts.lst#
|
|
||||||
python-cephclient-v0.1.0.5.tar.gz#python-cephclient-0.1.0.5#https://github.com/dmsimard/python-cephclient/archive/v0.1.0.5.tar.gz#http##
|
python-cephclient-v0.1.0.5.tar.gz#python-cephclient-0.1.0.5#https://github.com/dmsimard/python-cephclient/archive/v0.1.0.5.tar.gz#http##
|
||||||
python-setuptools-v38.5.1.tar.gz#setuptools-38.5.1#https://github.com/pypa/setuptools/archive/v38.5.1.tar.gz#http##
|
python-setuptools-v38.5.1.tar.gz#setuptools-38.5.1#https://github.com/pypa/setuptools/archive/v38.5.1.tar.gz#http##
|
||||||
python-smartpm-1.4.1.tar.gz#smart-1.4.1#http://launchpad.net/smart/trunk/1.4.1/+download/smart-1.4.1.tar.bz2#http##
|
python-smartpm-1.4.1.tar.gz#smart-1.4.1#http://launchpad.net/smart/trunk/1.4.1/+download/smart-1.4.1.tar.bz2#http##
|
||||||
|
|
Loading…
Reference in New Issue