Переглянути джерело

Prevent removal of hook when new versions of openpkg with a changed rpmmacros file are installed.

Thomas Lotterer 21 роки тому
батько
коміт
e9987015c6
1 змінених файлів з 12 додано та 2 видалено
  1. 12 2
      odoc/odoc.spec

+ 12 - 2
odoc/odoc.spec

@@ -32,8 +32,8 @@ Distribution: OpenPKG
 Class:        EVAL
 Group:        Development
 License:      GPL
-Version:      20050815
-Release:      20050815
+Version:      20050824
+Release:      20050824
 
 #   list of sources
 Source0:      odoc
@@ -103,3 +103,13 @@ AutoReqProv:  no
     fi
     exit 0
 
+#   make it more (re|in)sistant against openpkg's with new rpmmacros
+%triggerin -- openpkg
+    if [ $1 -eq 1 ]; then
+        #   hook into OpenPKG bootstrap
+        echo "%%l_odoc %%""{l_prefix}/libexec/openpkg/odoc" | \
+        %{l_rpmtool} config \
+            -a -i "$RPM_INSTALL_PREFIX:odoc" $RPM_INSTALL_PREFIX/etc/openpkg/rpmmacros
+    fi
+    exit 0
+