[arch-commits] Commit in abs/trunk (ChangeLog PKGBUILD abs.install)

Allan McRae allan at archlinux.org
Tue Mar 31 13:55:56 UTC 2009


    Date: Tuesday, March 31, 2009 @ 09:55:56
  Author: allan
Revision: 32451

upgpkg: abs 2.3.2-2

Modified:
  abs/trunk/ChangeLog
  abs/trunk/PKGBUILD
  abs/trunk/abs.install

-------------+
 ChangeLog   |    5 +++++
 PKGBUILD    |    2 +-
 abs.install |   13 +++++++++----
 3 files changed, 15 insertions(+), 5 deletions(-)

Modified: ChangeLog
===================================================================
--- ChangeLog	2009-03-31 13:25:00 UTC (rev 32450)
+++ ChangeLog	2009-03-31 13:55:56 UTC (rev 32451)
@@ -1,5 +1,10 @@
 2009-03-31 Allan McRae <allan at archlinux.org>
 
+	* 2.3.2-2
+	Improve install script handling of non-existent directories in ABS tree
+
+2009-03-31 Allan McRae <allan at archlinux.org>
+
 	* 2.3.2-1
 	Fix potential permission issues in the ABS tree
 

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2009-03-31 13:25:00 UTC (rev 32450)
+++ PKGBUILD	2009-03-31 13:55:56 UTC (rev 32451)
@@ -3,7 +3,7 @@
 
 pkgname=abs
 pkgver=2.3.2
-pkgrel=1
+pkgrel=2
 pkgdesc="Utilities to download and work with the Arch Build System (ABS)"
 arch=('i686' 'x86_64')
 url="http://projects.archlinux.org/git/?p=abs.git"

Modified: abs.install
===================================================================
--- abs.install	2009-03-31 13:25:00 UTC (rev 32450)
+++ abs.install	2009-03-31 13:55:56 UTC (rev 32451)
@@ -1,7 +1,12 @@
 pre_upgrade() {
     if [ "$(vercmp $2 2.3.2-1)" -lt 0 ]; then
-    echo "==> Fixing potential ABS tree permission issues (this may take a while...)"
-    find /var/abs/{core,extra,community,testing} -type d -exec chown root:root {} \;
-    find /var/abs/{core,extra,community,testing} -type d -exec chmod 755 {} \;
-  fi
+        echo "==> Fixing potential ABS tree permission issues (this may take a while...)"
+    
+        for dir in core extra community testing; do
+            if [ -d /var/abs/$dir ]; then
+                find /var/abs/$dir -type d -exec chown root:root {} \;
+                find /var/abs/$dir -type d -exec chmod 755 {} \;
+            fi
+        done
+    fi
 }




More information about the arch-commits mailing list