pkgmk: fix the up-to-date option (avoid unnecesarry rebuilds)
authorjust_fun <just.the.real.fun@gmail.com>
Fri, 4 Aug 2017 16:25:37 +0000 (19:25 +0300)
committerFredrik Rinnestam <fredrik@crux.nu>
Wed, 20 Sep 2017 15:49:07 +0000 (17:49 +0200)
commit35b56a38e08e15ecf88925ba03f5ffda2ddbec6f
tree5bda0284e62003f8317f722dac96ae136d37f484
parent99ded8b59cd75b8799d64581f58b73b8705b311b
pkgmk: fix the up-to-date option (avoid unnecesarry rebuilds)

build_needed() function returns true/yes if a source is missing,
even when the target/package exists and is up-to-date. This
behaviour triggers unnecesarry rebuilds.

Because only the remote sources can be missing and
we don't want to rebuild a port just because we've deleted
some of its remote sources, this patch changes that condition
from:
    ( the source is missing OR  is newer than the target/package )
to
    ( the source exists     AND is newer than the target/package )
pkgmk.in