Accepting request 532796 from home:sbrabec:branches:desktop-file-utils-1049867

- suse-update-mime-defaults: Do not be confused by "r" environment
  variable. Requires DESTDIR=/foo command line argument instead
  (boo#1049867).

OBS-URL: https://build.opensuse.org/request/show/532796
OBS-URL: https://build.opensuse.org/package/show/X11:common:Factory/desktop-file-utils?expand=0&rev=62
This commit is contained in:
Dirk Mueller 2017-10-11 07:00:12 +00:00 committed by Git OBS Bridge
parent 41244a7254
commit c0cf80d166
2 changed files with 15 additions and 0 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon Oct 9 16:01:45 CEST 2017 - sbrabec@suse.com
- suse-update-mime-defaults: Do not be confused by "r" environment
variable. Requires DESTDIR=/foo command line argument instead
(boo#1049867).
-------------------------------------------------------------------
Thu Jun 22 10:07:09 UTC 2017 - dimstar@opensuse.org

View File

@ -18,6 +18,14 @@
export LC_ALL=C
r=
case $1 in
DESTDIR=* )
r=`echo "$1" | sed s/^DESTDIR=//`
shift
;;
esac
# reset XDG_DATA_DIRS so it can be trusted
unset XDG_DATA_DIRS
if [ "${PROFILEREAD}" != "true" ]; then