Created
October 27, 2023 14:57
-
-
Save rzr/6d482b4acf4f8e5d31b7135690cd577c to your computer and use it in GitHub Desktop.
RTFACT-29944: debian: Please generate sources manifests for deb-src apt-src
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://jfrog.atlassian.net/browse/RTFACT-29944 | |
repo="TODO" | |
repo="$repo-debian" | |
url="https://TODO.jfrog.io/artifactory/$repo" | |
user=TODO | |
COMPONENT=main | |
DEBIAN_PACKAGE_NAME="TODO" | |
DISTRIBUTION="bookworm" # lsb_release --codename -s | |
ARCHITECTURE=amd64 | |
cat /etc/os-release | grep $DISTRIBUTION | |
PASSWORD="TODO" | |
package=$(dpkg-parsechangelog -S 'Source') | |
letter=$(echo ${package} | cut -b1-1) | |
url="$url/pool/$letter/$package" | |
ls $PWD/../*debian.tar.xz | while read PATH_TO_FILE ; do | |
DEBIAN_PACKAGE_NAME=$(basename -- "$PATH_TO_FILE") | |
curl -u$user:$PASSWORD \ | |
-XPUT "$url/pool/$DEBIAN_PACKAGE_NAME;deb.distribution=$DISTRIBUTION;deb.component=$COMPONENT;" \ | |
-T $PATH_TO_FILE | |
done | |
ls $PWD/../*.orig.tar.* | while read PATH_TO_FILE ; do | |
DEBIAN_PACKAGE_NAME=$(basename -- "$PATH_TO_FILE") | |
curl -u$user:$PASSWORD \ | |
-XPUT "$url/pool/$DEBIAN_PACKAGE_NAME;deb.distribution=$DISTRIBUTION;deb.component=$COMPONENT;" \ | |
-T $PATH_TO_FILE | |
done | |
ls $PWD/../*.dsc | while read PATH_TO_FILE ; do | |
DEBIAN_PACKAGE_NAME=$(basename -- "$PATH_TO_FILE") | |
curl -u$user:$PASSWORD \ | |
-XPUT "$url/pool/$DEBIAN_PACKAGE_NAME;deb.distribution=$DISTRIBUTION;deb.component=$COMPONENT;" \ | |
-T $PATH_TO_FILE | |
done | |
ls $PWD/../*_${ARCHITECTURE}.deb | while read PATH_TO_FILE ; do | |
DEBIAN_PACKAGE_NAME=$(basename -- "$PATH_TO_FILE") | |
curl -u$user:$PASSWORD \ | |
-XPUT "$url/pool/$DEBIAN_PACKAGE_NAME;deb.distribution=$DISTRIBUTION;deb.component=$COMPONENT;deb.architecture=$ARCHITECTURE" \ | |
-T $PATH_TO_FILE | |
done | |
architecture=all | |
ls $PWD/../*_${architecture}.deb | while read PATH_TO_FILE ; do | |
DEBIAN_PACKAGE_NAME=$(basename -- "$PATH_TO_FILE") | |
curl -u$user:$PASSWORD \ | |
-XPUT "$url/pool/$DEBIAN_PACKAGE_NAME;deb.distribution=$DISTRIBUTION;deb.component=$COMPONENT;deb.architecture=$ARCHITECTURE" \ | |
-T $PATH_TO_FILE | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment