Prevent unnecessary builds #87
Labels
No labels
Roadmap
V
bug
docs
duplicate
enhancement
good first issue
help wanted
idea
invalid
question
wontfix
Idea
Roadmap
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No project
No assignees
1 participant
Due date
No due date set.
Dependencies
No dependencies set.
Reference: vieter-v/vieter#87
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
We currently always rebuild a package, even if it hasn't actually changed. This could be mitigated by figuring out a way to first run the
pkgver()function without executing the rest of the PKGBUILD. With this information, we could send a HEAD request to the server (or maybe read the database) to check whether the package version is already present.Running
makepkg --nobuild --nodepscauses makepkg to download all sources & run thepkgverfunction, without actually starting the build. Makepkg also updates thePKGBUILDfile with the new correct version. Because aPKGBUILDis just a Bash script, we could then source it & read the pkgver variable. To get the architecture,uname -mshould suffice. With this info, we can send a HEAD request to the package file's endpoint to see whether it exists or not.