Skip to content
Snippets Groups Projects
  • Dave Reisner's avatar
    27441f20
    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
    History
    common: implement find_cached_package
    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>
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
checkpkg.in 2.12 KiB