summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xfullpkg10
-rwxr-xr-xmipsrelease7
2 files changed, 10 insertions, 7 deletions
diff --git a/fullpkg b/fullpkg
index 6e9ea19..ce31dd4 100755
--- a/fullpkg
+++ b/fullpkg
@@ -398,12 +398,12 @@ if [ ${build_only} == 'n' ]; then
usage && exit 1
}
-fi
-
# Add mips64el if missing from arch=() and it isn't an 'any' package
-if ! grep mips64el PKGBUILD >/dev/null; then
- warning "Adding mips64el arch"
- sed -i "s/^\(arch=([^)anym]\+\))/\1 'mips64el')/" "PKGBUILD"
+ if ! grep mips64el PKGBUILD >/dev/null; then
+ warning "Adding mips64el arch"
+ sed -i "s/^\(arch=([^)anym]\+\))/\1 'mips64el')/" "PKGBUILD"
+ fi
+
fi
# If the queue file isn't writable go into offline mode
diff --git a/mipsrelease b/mipsrelease
index 22d0866..0f8a8de 100755
--- a/mipsrelease
+++ b/mipsrelease
@@ -32,13 +32,16 @@ get_full_version() {
repo=$1; shift
-repo-add ${PKGDEST}/stage3.db.tar.gz $@
-
# Get all needed sources
source PKGBUILD
fullver=$(get_full_version ${epoch:-0} ${pkgver} ${pkgrel})
makepkg --source -f
+for name in ${pkgname[@]}; do
+ repo-add ${PKGDEST}/stage3.db.tar.gz ${PKGDEST}/${name}-${fullver}-*.pkg.tar.*
+done
+
+
mkdir -p ${WORKDIR}/abs/${CARCH}/${repo} >/dev/null
pushd ${WORKDIR}/abs/${CARCH}/${repo} >/dev/null