Fix CI workflow to use traditional sources.list format instead of .sources
All checks were successful
Build ostree packages from sid to trixie / build (push) Successful in 1m7s
All checks were successful
Build ostree packages from sid to trixie / build (push) Successful in 1m7s
- The .sources format was not being recognized by apt source command - apt source ostree requires traditional sources.list format with deb-src lines - This fixes the root cause of the build failure where apt source was failing silently - Now both apt-cacher-ng and standard mirrors use sources.list format
This commit is contained in:
parent
1a99999039
commit
65d5ef02da
1 changed files with 4 additions and 10 deletions
|
|
@ -75,18 +75,12 @@ jobs:
|
||||||
if timeout 5 curl -s --connect-timeout 3 \
|
if timeout 5 curl -s --connect-timeout 3 \
|
||||||
http://192.168.1.101:3142/acng-report.html > /dev/null 2>&1; then
|
http://192.168.1.101:3142/acng-report.html > /dev/null 2>&1; then
|
||||||
echo '✅ Using apt-cacher-ng for package downloads...'
|
echo '✅ Using apt-cacher-ng for package downloads...'
|
||||||
echo 'Types: deb deb-src' > /etc/apt/sources.list.d/debian.sources
|
echo 'deb http://192.168.1.101:3142/ftp.us.debian.org/debian unstable main' > /etc/apt/sources.list
|
||||||
echo 'URIs: http://192.168.1.101:3142/ftp.us.debian.org/debian' >> /etc/apt/sources.list.d/debian.sources
|
echo 'deb-src http://192.168.1.101:3142/ftp.us.debian.org/debian unstable main' >> /etc/apt/sources.list
|
||||||
echo 'Suites: unstable' >> /etc/apt/sources.list.d/debian.sources
|
|
||||||
echo 'Components: main' >> /etc/apt/sources.list.d/debian.sources
|
|
||||||
echo 'Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg' >> /etc/apt/sources.list.d/debian.sources
|
|
||||||
else
|
else
|
||||||
echo '⚠️ Using standard Debian mirrors...'
|
echo '⚠️ Using standard Debian mirrors...'
|
||||||
echo 'Types: deb deb-src' > /etc/apt/sources.list.d/debian.sources
|
echo 'deb http://deb.debian.org/debian unstable main' > /etc/apt/sources.list
|
||||||
echo 'URIs: http://deb.debian.org/debian' >> /etc/apt/sources.list.d/debian.sources
|
echo 'deb-src http://deb.debian.org/debian unstable main' >> /etc/apt/sources.list
|
||||||
echo 'Suites: unstable' >> /etc/apt/sources.list.d/debian.sources
|
|
||||||
echo 'Components: main' >> /etc/apt/sources.list.d/debian.sources
|
|
||||||
echo 'Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg' >> /etc/apt/sources.list.d/debian.sources
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Update package lists
|
# Update package lists
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue