building on centos5.3
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Wed, 22 Apr 2009 13:50:08 +0000 (13:50 +0000)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Wed, 22 Apr 2009 13:50:08 +0000 (13:50 +0000)
build.common
mirroring/centos5/yum.repos.d/building.repo.in

index 8d2e664..5086c49 100644 (file)
@@ -376,12 +376,14 @@ fi
     # glibc must be specified explicitly for the correct arch to be
     # chosen.
     echo "* Installing glibc"
-    yum $yum_options $exclude_arg install glibc
+    # ignore yum's return code that is basically undefined
+    yum $yum_options $exclude_arg install glibc || :
 
     # Go, baby, go
     if [ -n "$pkgs_packages" ] ; then
        echo "* Installing optional packages" $pkgs_packages
-       yum $yum_options $exclude_arg install $pkgs_packages
+        # ignore yum's return code that is basically undefined
+       yum $yum_options $exclude_arg install $pkgs_packages || :
        if ! rpm --root $vroot -q $pkgs_packages >/dev/null ; then
            echo "* Warning: Missing packages"
            rpm --root $vroot -q $pkgs_packages | grep "not installed"
@@ -392,7 +394,8 @@ fi
        ## call yum sequentially to get finer-grained info on dependencies
        for grp in $pkgs_groups ; do
            echo "* Installing optional group $grp" 
-           yum $yum_options $exclude_arg groupinstall "$grp"
+            # ignore yum's return code that is basically undefined
+           yum $yum_options $exclude_arg groupinstall "$grp" || :
        done
     fi
 
@@ -411,7 +414,8 @@ fi
 
     # Clean yum cache
     echo "* Cleaning up"
-    yum $yum_options clean all
+    # ignore yum's return code that is basically undefined
+    yum $yum_options clean all || :
 
     # Clean RPM state
     rm -f $vroot/var/lib/rpm/__db*
index 79d8ac5..f31bbbc 100644 (file)
@@ -1,12 +1,12 @@
 [base]
-name=CentOS 5.2 - $basearch - Base
-baseurl=@MIRRORURL@/centos/5.2/os/$basearch/
+name=CentOS 5.3 - $basearch - Base
+baseurl=@MIRRORURL@/centos/5.3/os/$basearch/
 gpgcheck=1
 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
 
 [updates]
-name=CentOS 5.2 - $basearch - Released Updates
-baseurl=@MIRRORURL@/centos/5.2/updates/$basearch/
+name=CentOS 5.3 - $basearch - Released Updates
+baseurl=@MIRRORURL@/centos/5.3/updates/$basearch/
 gpgcheck=1
 gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5