This avoids the problem seen with HTTP 400 errors.
The sources.list entry for latest dev snapshot will be:
deb [trusted=yes] https://gitlab.com/api/v4/projects/xen-project%252Fxen-guest-agent/packages/generic/deb-amd64/ main/
Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
- for FILE in *.deb; do mv $FILE $(echo $FILE | tr "~" "-"); done
- apt-ftparchive generate ../../apt-ftparchive.conf
+
+ # post-processing so we can use `deb https://...generic/deb-amd64/ main/`
+ - 'sed -i "s,^Filename: ./,Filename: ${CI_COMMIT_REF_NAME}/," Packages'
+
- apt-ftparchive release .
-o APT::FTPArchive::Release::Description="xen-guest-agent CI packages for ${CI_COMMIT_REF_NAME}"
-o APT::FTPArchive::Release::Label="xen-guest-agent-ci"
};
Default {
- Packages::Compress ". gzip xz";
+ # don't compress, we'll post-process Packages
+ # (and anyway this layout would ignore compressed ones ¯\_(ツ)_/¯)
+ Packages::Compress ".";
Contents::Compress "gzip xz";
};