[arch-releng] [RFC] [PATCH] [syslinux-iso] Workaround download-repo.sh, remove extra gcc pkgs

Gerardo Exequiel Pozzi vmlinuz386 at yahoo.com.ar
Mon May 16 11:57:28 EDT 2011


Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386 at yahoo.com.ar>
---
 configs/syslinux-iso/download-repo.sh |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/configs/syslinux-iso/download-repo.sh b/configs/syslinux-iso/download-repo.sh
index 255304e..78ce531 100755
--- a/configs/syslinux-iso/download-repo.sh
+++ b/configs/syslinux-iso/download-repo.sh
@@ -38,7 +38,8 @@ fi
 /usr/bin/pacman -Sy
 
 #Ensure we have core/pkgname format, so we don't get crap from other repos
-PKGS=$(/usr/bin/pacman -Sl $REPO | cut -d' ' -f1,2 | tr ' ' '/')
+#Workaround remove gcc-add gcc-fortran gcc-go gcc-objc from [core]
+PKGS=$(/usr/bin/pacman -Sl $REPO | grep -v "gcc-\(a\|f\|g\|o\)" | cut -d' ' -f1,2 | tr ' ' '/')
 
 if [ -n "$PKGS" ]; then
     baseurl=""
@@ -58,7 +59,13 @@ if [ -n "$PKGS" ]; then
         fi
     done
     if [ "$REPO_CHANGED" = "y" ]; then
-        wget -nv "$baseurl/$REPO.db" -O "$DEST/$REPO.db"
+        # wget -nv "$baseurl/$REPO.db" -O "$DEST/$REPO.db"
+        #[workaround] remove gcc-add gcc-fortran gcc-go gcc-objc from [core]
+        wget -nv "$baseurl/$REPO.db.tar.gz" -O "$DEST/$REPO.db.tar.gz"
+        repo-remove "$DEST/$REPO.db.tar.gz" gcc-ada gcc-fortran gcc-go gcc-objc
+        mv "$DEST/$REPO.db.tar.gz" "$DEST/$REPO.db"
+        rm "$DEST/$REPO.db.tar.gz.old"
+        #[/workaround]
     fi
 else
     echo "No packages to download... what'd you break?"
-- 
1.7.5.1



More information about the arch-releng mailing list