summaryrefslogtreecommitdiff
path: root/fullpkg
diff options
context:
space:
mode:
authorNicolas Reynolds <fauno@kiwwwi.com.ar>2011-06-14 18:23:17 -0300
committerNicolas Reynolds <fauno@kiwwwi.com.ar>2011-06-14 18:23:17 -0300
commit6b008827e1cd2953ca1015a135c8aaf130c7dd27 (patch)
tree5c56dec09d430c8485ec9d16f525fa9813ce0d17 /fullpkg
parent519e7dfae0858a904bfa27cfdcbb73c2a5117711 (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-xfullpkg13
1 files changed, 7 insertions, 6 deletions
diff --git a/fullpkg b/fullpkg
index cbf2e47..9dd2ad8 100755
--- a/fullpkg
+++ b/fullpkg
@@ -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