// Create a repository and generate Packages
sh "mkdir -pv \
dists/${DISTRO}/main/binary-${ARCH} \
- pool/${DISTRO}/main/${ARCH}"
+ pool/${DISTRO}/main/${ARCH} \
+ pool/${DISTRO}/main/source"
// Copy all packages
sh "cp -v uploads/*.deb pool/${DISTRO}/main/${ARCH}"
sh "dpkg-scanpackages pool/${DISTRO}/main/${ARCH} \
| gzip -9 > dists/${DISTRO}/main/binary-${ARCH}/Packages.gz"
+ // Generate Sources.gz
+ sh "dpkg-scansources pool/${DISTRO}/main/${ARCH} \
+ | gzip -9 > dists/${DISTRO}/main/source/Sources.gz"
+
// Stash the packages
stash includes: "dists/**/*, pool/**/*",
name: "${DISTRO}-${ARCH}"