forked from Plemya-x/ALR
		
	Merge pull request 'fix: use platform specific Release in upgrade' (#22) from Maks1mS/ALR:fix/use-platform-specific-release into master
				
					
				
			Reviewed-on: Plemya-x/ALR#22
This commit is contained in:
		@@ -54,6 +54,7 @@ import (
 | 
			
		||||
	"gitea.plemya-x.ru/Plemya-x/ALR/internal/cpu"
 | 
			
		||||
	"gitea.plemya-x.ru/Plemya-x/ALR/internal/db"
 | 
			
		||||
	"gitea.plemya-x.ru/Plemya-x/ALR/internal/dl"
 | 
			
		||||
	"gitea.plemya-x.ru/Plemya-x/ALR/internal/overrides"
 | 
			
		||||
	"gitea.plemya-x.ru/Plemya-x/ALR/internal/shutils/decoder"
 | 
			
		||||
	"gitea.plemya-x.ru/Plemya-x/ALR/internal/shutils/handlers"
 | 
			
		||||
	"gitea.plemya-x.ru/Plemya-x/ALR/internal/shutils/helpers"
 | 
			
		||||
@@ -576,9 +577,7 @@ func buildPkgMetadata(
 | 
			
		||||
		})
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if pkgFormat == "rpm" && info.ID == "altlinux" {
 | 
			
		||||
		pkgInfo.Release = "alt" + pkgInfo.Release
 | 
			
		||||
	}
 | 
			
		||||
	pkgInfo.Release = overrides.ReleasePlatformSpecific(vars.Release, info)
 | 
			
		||||
 | 
			
		||||
	if vars.Epoch != 0 {
 | 
			
		||||
		pkgInfo.Epoch = strconv.FormatUint(uint64(vars.Epoch), 10)
 | 
			
		||||
 
 | 
			
		||||
@@ -44,6 +44,7 @@ type OSRelease struct {
 | 
			
		||||
	SupportURL       string
 | 
			
		||||
	BugReportURL     string
 | 
			
		||||
	Logo             string
 | 
			
		||||
	PlatformID       string
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
var parsed *OSRelease
 | 
			
		||||
@@ -102,6 +103,7 @@ func ParseOSRelease(ctx context.Context) (*OSRelease, error) {
 | 
			
		||||
		SupportURL:       runner.Vars["SUPPORT_URL"].Str,
 | 
			
		||||
		BugReportURL:     runner.Vars["BUG_REPORT_URL"].Str,
 | 
			
		||||
		Logo:             runner.Vars["LOGO"].Str,
 | 
			
		||||
		PlatformID:       runner.Vars["PLATFORM_ID"].Str,
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	distroUpdated := false
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user