Skip to content
  • Alad Wenter's avatar
    makepkg: propagate E_REMOVE_BUILD_DEPS · 7e79cf73
    Alad Wenter authored and Allan McRae's avatar Allan McRae committed
    
    
    remove_deps is called once, at the end of clean_up() before makepkg
    exit. If remove_deps returns >0 (e.g. when pressing "n" in the resulting
    prompt), the error is caught by the ERR signal handler. This in turns
    sends SIGUSR1 to the process group, with resulting exit code 138.
    
    In case remove_deps fails, this patch exits makepkg with E_REMOVE_DEPS
    if there was no previous error (that is, EXIT_CODE equals E_OK).
    Otherwise, makepkg exits with EXIT_CODE.
    
    Signed-off-by: default avatarAllan McRae <allan@archlinux.org>
    7e79cf73