Skip to content

Commit

Permalink
Remove gconf stuff in pre and preun as it is not used anymore.
Browse files Browse the repository at this point in the history
Signed-off-by: Philippe De Swert <philippe.deswert@jollamobile.com>
  • Loading branch information
philippedeswert committed Jul 22, 2013
1 parent 4b8bf5a commit e8e9472
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions rpm/usb-moded.spec
Expand Up @@ -213,20 +213,20 @@ ln -s ../%{name}.service $RPM_BUILD_ROOT/lib/systemd/system/multi-user.target.wa
rm %{buildroot}/etc/usb-moded/dyn-modes/sync_mode.ini

%pre
if [ "$1" -gt 1 ]; then
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
gconftool-2 --makefile-uninstall-rule \
%{_sysconfdir}/gconf/schemas/usb-moded.schemas \
> /dev/null || :
fi
#if [ "$1" -gt 1 ]; then
# export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
# gconftool-2 --makefile-uninstall-rule \
# %{_sysconfdir}/gconf/schemas/usb-moded.schemas \
# > /dev/null || :
#fi

%preun
if [ "$1" -eq 0 ]; then
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
gconftool-2 --makefile-uninstall-rule \
%{_sysconfdir}/gconf/schemas/usb-moded.schemas \
> /dev/null || :
fi
#if [ "$1" -eq 0 ]; then
# export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
# gconftool-2 --makefile-uninstall-rule \
# %{_sysconfdir}/gconf/schemas/usb-moded.schemas \
# > /dev/null || :
#fi
systemctl daemon-reload

%post
Expand Down

0 comments on commit e8e9472

Please sign in to comment.