feat!: introduce new distribution structure
BREAKING CHANGE: distro definition in the configuration files has switched
from
  [[supported_kernels]]
  distro_type = "Ubuntu"
  distro_release = "16.04"
  ...
to
  [[supported_kernels]]
  distro = { id = "Ubuntu", release = "16.04" }
  ...
			
			
This commit is contained in:
		
							
								
								
									
										6
									
								
								cache/cache.go
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								cache/cache.go
									
									
									
									
										vendored
									
									
								
							| @@ -15,7 +15,7 @@ import ( | ||||
| 	"github.com/cavaliergopher/grab/v3" | ||||
| 	"github.com/rs/zerolog/log" | ||||
|  | ||||
| 	"code.dumpstack.io/tools/out-of-tree/config" | ||||
| 	"code.dumpstack.io/tools/out-of-tree/distro" | ||||
| 	"code.dumpstack.io/tools/out-of-tree/fs" | ||||
| ) | ||||
|  | ||||
| @@ -95,8 +95,8 @@ func DownloadDebianCache(cachePath string) (err error) { | ||||
| 	return os.Rename(resp.Filename, cachePath) | ||||
| } | ||||
|  | ||||
| func PackageURL(dt config.DistroType, orig string) (found bool, fileurl string) { | ||||
| 	if dt != config.Debian { | ||||
| func PackageURL(dt distro.ID, orig string) (found bool, fileurl string) { | ||||
| 	if dt != distro.Debian { | ||||
| 		return | ||||
| 	} | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user