diff options
author | RĂ¼diger Timm <rt@openoffice.org> | 2005-02-07 14:32:12 +0000 |
---|---|---|
committer | RĂ¼diger Timm <rt@openoffice.org> | 2005-02-07 14:32:12 +0000 |
commit | ab7b183019259f9efea930e4d60c7996883c4787 (patch) | |
tree | 3fb1b54ee6c915ae71535012940e3e6951d83386 /sysui/desktop/suse | |
parent | 178a10d6c78f63e0cefaa78d64356a65b4623d13 (diff) |
INTEGRATION: CWS sysui04 (1.10.2); FILE MERGED
2005/02/07 14:36:07 obr 1.10.2.1: some rpm versions do not wait for the shared lock
Diffstat (limited to 'sysui/desktop/suse')
-rw-r--r-- | sysui/desktop/suse/suse-menus.spec | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sysui/desktop/suse/suse-menus.spec b/sysui/desktop/suse/suse-menus.spec index 1e7cec35fc..62e197dff7 100644 --- a/sysui/desktop/suse/suse-menus.spec +++ b/sysui/desktop/suse/suse-menus.spec @@ -13,8 +13,13 @@ OpenOffice.org desktop integration %triggerin -- openofficeorg-core01 # create file in /etc that contains the office installation path cat > /tmp/install.$$ << EOF -sleep 2 -ln -sf \`rpm -q --qf '%{INSTALLPREFIX}' openofficeorg-core01\` /etc/%PREFIX +while [ "\$TARGET" == "" ] +do + sleep 2 + TARGET=\`rpm -q --qf '%{INSTALLPREFIX}' openofficeorg-core01 2>&1\` && ln -sf \$TARGET /etc/%PREFIX + # some rpm versions do not wait for the shared lock + echo \$TARGET | grep '/var/lib/rpm' && TARGET="" +done rm -f /tmp/install.$$ EOF |