Remove timestamp based rebuilds (#1174)

If you want to build a package without changing the version number,
please use `--force` from now on. For example:

    pmbootstrap build --force hello-world

Prior to this commit, changes were detected automatically (timestamp
based rebuilds). However, that feature does not work as expected with
the binary package repository we have now, and depending on how you use
git, it has never worked. Close #1167, close #1156, close #1023 and
close #985. This commit also mentions --force when a package is up to date,
but the user requested to build it.
This commit is contained in:
Oliver Smith 2018-01-28 23:27:33 +00:00 committed by GitHub
parent bdeec7a255
commit 3c59126bc1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 18 additions and 347 deletions

View file

@ -143,8 +143,11 @@ def build(args):
# Build all packages
for package in args.packages:
arch_package = args.arch or pmb.build.autodetect.arch(args, package)
pmb.build.package(args, package, arch_package, args.force,
args.buildinfo, args.strict)
if not pmb.build.package(args, package, arch_package, args.force,
args.buildinfo, args.strict):
logging.info("NOTE: Package '" + package + "' is up to date. Use"
" 'pmbootstrap build " + package + " --force'"
" if needed.")
def build_init(args):