Skip to content
  • Dave Reisner's avatar
    common: implement find_cached_package · 27441f20
    Dave Reisner authored
    
    
    This function (currently) searches through $PWD and $PKGDEST looking
    for a tarball matching the requested package name, architecture, and
    pkgver. If found, it writes the full path to the located package to
    stdout and returns 0, else 1. If more than 1 match is found, it's
    treated as an error and the user will need to figure out what to do.
    
    Use this in checkpkg and commitpkg, which previously implemented their
    own less complete logic, to locate the build artifacts they rely on.
    
    Signed-off-by: default avatarDave Reisner <dreisner@archlinux.org>
    Signed-off-by: default avatarPierre Schmitz <pierre@archlinux.de>
    27441f20