mirror of
https://github.com/mudler/luet.git
synced 2025-07-31 23:05:03 +00:00
gentoo/simpleparser: Use now GentooPackage methods for PV, P, PN, PVR
This commit is contained in:
parent
d96464cae4
commit
39e658dab6
@ -233,9 +233,10 @@ func SourceFile(ctx context.Context, path string, pkg *_gentoo.GentooPackage) (m
|
|||||||
return nil, fmt.Errorf("could not open: %v", err)
|
return nil, fmt.Errorf("could not open: %v", err)
|
||||||
}
|
}
|
||||||
// Add default Genoo Variables
|
// Add default Genoo Variables
|
||||||
ebuild := fmt.Sprintf("P=%s\n", pkg.GetPackageName()) +
|
ebuild := fmt.Sprintf("P=%s\n", pkg.GetP()) +
|
||||||
fmt.Sprintf("PN=%s\n", pkg.Name) +
|
fmt.Sprintf("PN=%s\n", pkg.GetPN()) +
|
||||||
fmt.Sprintf("PV=%s\n", pkg.Version) +
|
fmt.Sprintf("PV=%s\n", pkg.GetPV()) +
|
||||||
|
fmt.Sprintf("PVR=%s\n", pkg.GetPVR()) +
|
||||||
string(content)
|
string(content)
|
||||||
|
|
||||||
file, err := syntax.NewParser(syntax.StopAt("src")).Parse(strings.NewReader(ebuild), path)
|
file, err := syntax.NewParser(syntax.StopAt("src")).Parse(strings.NewReader(ebuild), path)
|
||||||
|
Loading…
Reference in New Issue
Block a user