FS#23637 - [srcpac] -Syu installs binary of pkg with 'from source'-flag

Attached to Project: Arch Linux
Opened by Steffen Weber (boenki) - Thursday, 07 April 2011, 21:14 GMT
Last edited by Andrea Scarpino (BaSh) - Monday, 18 April 2011, 18:04 GMT
Task Type Bug Report
Category Arch Projects
Status Closed
Assigned To Andrea Scarpino (BaSh)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No



I have built various pkgs with srcpac.
srcpac -Qi shows Source : Yes

there's a new version of the pkg on the repo and
sudo srcpac -Syu
installs the binary instead of building it from source.

I hope I did not misunderstand it but in my opinion it should
install pkgs without 'from source'-flag as binaries from the repos and
build pkgs with 'from source'-flag.

I know there can be older versions of PKGBUILD in the abs-tree,
but then it should be updated later.

Because that's the point of srcpac.

Additional info:
* package version(s)
Name : srcpac
Version : 0.10.2-1
This task depends upon

Closed by  Andrea Scarpino (BaSh)
Monday, 18 April 2011, 18:04 GMT
Reason for closing:  Fixed
Additional comments about closing:  on trunk

http://projects.archlinux.org/srcpac.git /commit/?id=2ebf83979ba480b16620a2123cab 9b5a678c2974
Comment by Andrea Scarpino (BaSh) - Tuesday, 12 April 2011, 15:38 GMT
This sounds more like a Feature Request than a bug.
Comment by Steffen Weber (boenki) - Wednesday, 13 April 2011, 22:03 GMT
For me this is the most important function of srcpac:
sudo srcpac -Syu
install pkgs without 'from source'-flag as binaries from the repos and
BUILD(!!) pkgs with 'from source'-flag.

Look at this 7-year-old announcment of srcpac:

"srcpac -Syu will upgrade all binary packages by installing binaries and upgrade all source packages by compiling from source."

The feature request in my report was to postpone an update if the PKGBUILD from the ABS-tree is older than the binary on the repo.
But that's only a hint to solve this bug.
Comment by Andrea Scarpino (BaSh) - Wednesday, 13 April 2011, 23:18 GMT
Ok, I'll fix it