Skip to content
  • Eli Schwartz's avatar
    libmakepkg/lint_pkgbuild: fix regression in linting depends=(foo=$epoch:$pkgver-$pkgrel) · 2c94118d
    Eli Schwartz authored and Allan McRae's avatar Allan McRae committed
    In commit 91b72cc3
    
     support was added for
    linting depends/etc. to ensure they contain only valid dependency
    specifiers. However it did not properly take into account the
    possibility of dependencies linked to a specific pkgrel or epoch, which
    promptly failed to build because "-" and ":" is not allowed in a pkgver.
    
    pkgrel is something supported by pacman and useful for e.g. split packages
    which cannot be mismatched even if the pkgver is the same. Fix by
    removing an optional suffixed "-$decimal" when checking for a valid
    pkgver.
    
    epoch is kind of difficult to do without :D so likewise fix by removing
    an optional prefixed "$integer:"
    
    Signed-off-by: default avatarEli Schwartz <eschwartz@archlinux.org>
    Signed-off-by: default avatarAllan McRae <allan@archlinux.org>
    2c94118d