Skip to content
Snippets Groups Projects
Commit bd43b62a authored by Christopher Spinrath's avatar Christopher Spinrath
Browse files

repo_packages: read package list from offline_repo.json

parent aa8450bd
No related branches found
No related tags found
No related merge requests found
......@@ -40,7 +40,8 @@ if [ ! -d "$SCRIPT_DIR" ]; then
exit 2
fi
PKG_LIST=$(get_packages_from_file "$CONTRIB_DIR/offline_repo_packages")
#all packages that do not have an urls field (and thus, should be resolved using apt)
PKG_LIST=$("$SCRIPT_DIR/read_packages.py" "$CONTRIB_DIR/offline_repo.json" | grep -E "^[^[:space:]]+$" | tr "\n" " ")
PKG_DESTINATION=$DESTINATION/archives
......@@ -61,7 +62,7 @@ PKG_URLS=$(apt-get install --reinstall --print-uris -qq $PKG_LIST | cut -d"'" -f
echo "package urls:"
echo "$PKG_URLS"
PKG_URLS="$PKG_URLS $(get_packages_from_file "$CONTRIB_DIR/offline_repo_packages.manualurls")"
PKG_URLS="$PKG_URLS $("$SCRIPT_DIR/read_packages.py" "$CONTRIB_DIR/offline_repo.json" | cut -f2- -s -d" " | tr "\n" " ")"
echo "downloading archives. this may take some time..."
wget -nc -P $PKG_DESTINATION $PKG_URLS
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment