Skip to content

Commit

Permalink
builder: Use eopkg.py3 to build pspec.xml recipes
Browse files Browse the repository at this point in the history
This ensures that solbuild will work with the phase1+2 changes to eopkg
and pisi packages [here](getsolus/packages#2964)

In addition, make a cosmetic tweak to eopkg install commands (which will
effectively be using eopkg.bin when the PR above lands) so the -y flag
is set before the -c flag when installing components.

Signed-off-by: Rune Morling <[email protected]>
  • Loading branch information
ermo committed Jun 18, 2024
1 parent 5e9c6d1 commit cd93718
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion builder/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ func (p *Package) BuildXML(notif PidNotifier, pman *EopkgManager, overlay *Overl

// Now build the package, ignore-sandbox in case someone is stupid
// and activates it in eopkg.conf...
cmd := eopkgCommand(fmt.Sprintf("eopkg build --ignore-sandbox --yes-all -O %s %s", wdir, xmlFile))
cmd := eopkgCommand(fmt.Sprintf("eopkg.py3 build --ignore-sandbox --yes-all -O %s %s", wdir, xmlFile))

slog.Info("Now starting build", "package", p.Name)

Expand Down
2 changes: 1 addition & 1 deletion builder/eopkg.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ func (e *EopkgManager) Upgrade() error {

// InstallComponent will install the named component inside the chroot.
func (e *EopkgManager) InstallComponent(comp string) error {
err := ChrootExec(e.notif, e.root, eopkgCommand(fmt.Sprintf("eopkg install -c %v -y", comp)))
err := ChrootExec(e.notif, e.root, eopkgCommand(fmt.Sprintf("eopkg install -y -c %v", comp)))
e.notif.SetActivePID(0)

return err
Expand Down

0 comments on commit cd93718

Please sign in to comment.