diff options
author | Nicolas Reynolds <fauno@kiwwwi.com.ar> | 2011-06-14 18:23:17 -0300 |
---|---|---|
committer | Nicolas Reynolds <fauno@kiwwwi.com.ar> | 2011-06-14 18:23:17 -0300 |
commit | 6b008827e1cd2953ca1015a135c8aaf130c7dd27 (patch) | |
tree | 5c56dec09d430c8485ec9d16f525fa9813ce0d17 /fullpkg | |
parent | 519e7dfae0858a904bfa27cfdcbb73c2a5117711 (diff) |
Fixed epoch and rolled back ban_file and queue_file because they were missing
if you don't have a custom libretools.conf but only a main one in /etc (like I
do :)
Diffstat (limited to 'fullpkg')
-rwxr-xr-x | fullpkg | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -10,13 +10,13 @@ source /usr/bin/libremessages # Avoid /libretools dir doesn't exist errors if [ -z $XDG_CONFIG_HOME ]; then error "There's no XDG_CONFIG_HOME var set" - OFLINE=true -elif [ -r $XDG_CONFIG_HOME/libretools/libretools.conf ]; then + exit 1 +fi # set queue_file and ban_file +[ -e $XDG_CONFIG_HOME/libretools/libretools.conf ] && \ source $XDG_CONFIG_HOME/libretools/libretools.conf - queue_file=$XDG_CONFIG_HOME/libretools/queue - ban_file=$XDG_CONFIG_HOME/libretools/ban -fi +queue_file=$XDG_CONFIG_HOME/libretools/queue +ban_file=$XDG_CONFIG_HOME/libretools/ban ##### START FUNCTIONS ##### @@ -138,7 +138,7 @@ get_full_version() { function cleanup { # Do nothing OR # Already cleaned - [ "${do_cleanup}" = "n" || ! -d ${build_dir} ] && return 0 + [[ "${do_cleanup}" = "n" || ! -d ${build_dir} ]] && return 0 # Only do cleanup on level 0 msg "Cleaning up..." @@ -152,6 +152,7 @@ function find_deps { source PKGBUILD local repo=${repo:-$(guess_repo)} local pkgbase=${pkgbase:-${pkgname[0]}} + local epoch=${epoch:-0} local fullver=$(get_full_version ${epoch} ${pkgver} ${pkgrel}) # If package and correct ${fullver} is built exit |