mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-10-21 10:58:23 +00:00
Fix the installer path for Ubuntu Focal
Ubuntu has started depreciating the Debian installer in focal and moved the installer images to a different path. In versions after focal, they are completly removed. This basically gives us more time to figure out how to use the new system.
This commit is contained in:
1 parent
43a0ceb350
commit
c2ee086487
4 files changed
+25
-8
No files matched your search
+5
-1
@@ -259,7 +259,11 @@ func (repo *RemoteRepo) UdebPath(component string, architecture string) string {
|
||||
// InstallerPath returns path of Packages files for given component and
|
||||
// architecture
|
||||
func (repo *RemoteRepo) InstallerPath(component string, architecture string) string {
|
||||
return fmt.Sprintf("%s/installer-%s/current/images/SHA256SUMS", component, architecture)
|
||||
if repo.Distribution == "focal" {
|
||||
return fmt.Sprintf("%s/installer-%s/current/legacy-images/SHA256SUMS", component, architecture)
|
||||
} else {
|
||||
return fmt.Sprintf("%s/installer-%s/current/images/SHA256SUMS", component, architecture)
|
||||
}
|
||||
}
|
||||
|
||||
// PackageURL returns URL of package file relative to repository root
|
||||
|
||||
Reference in new issue
Block a user