- change sigpipe fix so that the code really reads everything

from the pipe

- move desktop.attr to update-desktop-files

OBS-URL: https://build.opensuse.org/package/show/Base:System/rpm?expand=0&rev=127
This commit is contained in:
2011-06-09 08:38:43 +00:00
committed by Git OBS Bridge
parent 3009b580d0
commit 0ca7ac6a7d
4 changed files with 36 additions and 4 deletions

24
mimetype.diff Normal file
View File

@@ -0,0 +1,24 @@
Index: autodeps/linux.prov
===================================================================
--- autodeps/linux.prov.orig
+++ autodeps/linux.prov
@@ -11,6 +11,7 @@ solist=($(printf "%s\n" "${filelist[@]}"
pythonlist=
tcllist=
monolist=($(printf "%s\n" "${filelist[@]}" | egrep "\\.(exe|dll)\$"))
+mimetypelist=($(printf "%s\n" "${filelist[@]}" | egrep "\\.(desktop)\$"))
#
# --- Alpha does not mark 64bit dependencies
@@ -59,6 +60,11 @@ done | sort -u
printf "%s\n" "${tcllist[@]}" | /usr/lib/rpm/tcl.prov | sort -u
#
+# --- mimetypes in .desktop files
+[ -x /usr/lib/rpm/mimetypes.prov -a -n "$mimetypelist" ] &&
+ printf "%s\n" "${mimetypelist[@]}" | /usr/lib/rpm/mimetypes.prov | sort -u
+
+#
# --- Mono exes/dlls
: ${MONO_PREFIX=/usr}
if [ -x $MONO_PREFIX/bin/mono -a -n "$monolist" ] ; then