// Copy all packages
sh "cp -v uploads/*.deb pool/${DISTRO}/main/${ARCH}"
- // Generate Packages.gz
+ // Generate Packages
sh "dpkg-scanpackages pool/${DISTRO}/main/${ARCH} \
- | gzip -9 > dists/${DISTRO}/main/binary-${ARCH}/Packages.gz"
+ > dists/${DISTRO}/main/binary-${ARCH}/Packages"
- // Generate Sources.gz
+ // Generate Sources
sh "dpkg-scansources pool/${DISTRO}/main/${ARCH} \
- | gzip -9 > dists/${DISTRO}/main/source/Sources.gz"
+ > dists/${DISTRO}/main/source/Sources"
// Stash the packages
stash includes: "dists/**/*, pool/**/*",
}
steps {
+ // Install dependencies
+ sh "apt-get update"
+ sh "apt-get install -y apt-utils"
+
// Unstash all stashed packages from the matrix build
script {
for (distro in ["trixie", "bookworm"]) {
echo "Architectures: amd64 arm64"
echo "Components: main"
echo "Description: Pakfire Jenkins Repository"
- echo "Date: $(date -Ru)"
-
- # MD5
- echo "MD5Sum:"
- for arch in amd64 arm64; do
- echo -n " \$(md5sum dists/$distro/main/binary-\${arch}/Packages.gz | awk '{ print \$1 }')"
- echo -n " \$(stat --format="%s" dists/$distro/main/binary-\${arch}/Packages.gz)"
- echo " main/binary-\${arch}/Packages.gz"
- done
- ) >> dists/${distro}/Release
+
+ # Do the rest automatically
+ apt-ftparchive release dists/$distro
+ ) >> dists/$distro/Release
"""
}
}