summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@kiwwwi.com.ar>2011-02-20 22:09:40 -0300
committerNicolás Reynolds <fauno@kiwwwi.com.ar>2011-02-20 22:09:40 -0300
commit0162a16595059e269ba2d7b47e69212bc2ab1336 (patch)
tree50f3702a2848a02c18b72494bfc6bd3e34a77484
parentf8c49cc2915f66b53bd9dd248b41ab6a96c1059a (diff)
Changed looking for a package on abslibre logic
-rw-r--r--db-functions17
1 files changed, 5 insertions, 12 deletions
diff --git a/db-functions b/db-functions
index 0553188..e2731cb 100644
--- a/db-functions
+++ b/db-functions
@@ -1,5 +1,7 @@
#!/bin/bash
+. config
+
# Some PKGBUILDs need CARCH to be set
CARCH="x86_64"
@@ -16,7 +18,7 @@ restore_umask () {
}
# set up general environment
-WORKDIR=$(mktemp -d /tmp/$(basename $0).XXXXXXXXXX)
+WORKDIR=$(mktemp -d ${TMPDIR}/$(basename $0).XXXXXXXXXX)
LOCKS=()
# check if messages are to be printed using color
@@ -359,18 +361,9 @@ check_splitpkgs() {
if [ ! -f "${WORKDIR}/pkgbuilds/${repo}-${_pkgarch}/${_pkgbase}" ]; then
mkdir -p "${WORKDIR}/pkgbuilds/${repo}-${_pkgarch}"
-# Decide whether to look for PKGBUILD on [libre] or [libre-testing]
- case $repo in
- testing)
- altrepo=libre-testing
- ;;
- *)
- altrepo=libre
- ;;
- esac
-
cp -r ${SVNREPO}/$repo/$_pkgbase/PKGBUILD "${WORKDIR}/pkgbuilds/${repo}-${_pkgarch}/${_pkgbase}" >/dev/null 2>&1 || \
- cp -r ${SVNREPO}/$altrepo/$_pkgbase/PKGBUILD "${WORKDIR}/pkgbuilds/${repo}-${_pkgarch}/$_pkgbase">/dev/null 2>&1
+ cp -r ${SVNREPO}/libre/$_pkgbase/PKGBUILD "${WORKDIR}/pkgbuilds/${repo}-${_pkgarch}/${_pkgbase}" >/dev/null 2>&1 || \
+ cp -r ${SVNREPO}/libre-testing/$_pkgbase/PKGBUILD "${WORKDIR}/pkgbuilds/${repo}-${_pkgarch}/$_pkgbase">/dev/null 2>&1
[[ $? -ge 1 ]] && {
echo "Failed $_pkgbase-$_pkgver-$_pkgarch"