Forráskód Böngészése

fixed IDE updating

Christoph Schug 22 éve
szülő
commit
63e379d9aa
2 módosított fájl, 8 hozzáadás és 5 törlés
  1. 7 4
      sav/rc.sav
  2. 1 1
      sav/sav.spec

+ 7 - 4
sav/rc.sav

@@ -24,16 +24,19 @@
     @l_prefix@/bin/curl -s -o ${sav_zipfile} ${sav_ides}/${sav_zipfile} || exit 1
     rm -rf ${sav_tmpdir} >/dev/null 2>&1 || true
     mkdir ${sav_tmpdir}
-    (cd ${sav_tmpdir} && @l_prefix@/bin/unzip -jo ../${sav_zipfile}) || exit 1
+    ( cd ${sav_tmpdir} && @l_prefix@/bin/unzip -jo ../${sav_zipfile} ) || exit 1
 
-    #   update IDE repository
+    #   remove deprecated IDEs which are not part of the latest IDE pack
+    shopt -s nullglob
     for ide in *.ide; do
         if [ ! -f ${sav_tmpdir}/$ide ]; then
             rm -f $ide
         fi
     done
-    cp ${sav_tmpdir}/*.ide .
-    chmod 644 *.ide
+
+    #   update IDE repository by installing IDE files
+    @l_prefix@/lib/openpkg/shtool install -m 644 -o @l_musr@ -g @l_mgrp@ \
+        ${sav_tmpdir}/*.ide .
 
     #   cleanup
     rm -f  ${sav_zipfile} >/dev/null 2>&1 || true

+ 1 - 1
sav/sav.spec

@@ -33,7 +33,7 @@ Distribution: OpenPKG [EVAL]
 Group:        System
 License:      Commercial/Free-Trail
 Version:      2.14
-Release:      20030814
+Release:      20030822
 
 #   list of sources
 Source0:      http://downloads.sophos.com/dp/full/freebsd.elf.tar.Z