Bug 1443

Summary: cannot install VirtualBox-OSE-devel (%pre scriptlet fails)
Product: Fedora Reporter: Carl Roth <roth>
Component: VirtualBoxAssignee: Lubomir Rintel <lkundrak>
Status: CLOSED FIXED    
Severity: normal CC: lxtnow, sergio
Priority: P5    
Version: 13   
Hardware: All   
OS: GNU/Linux   
namespace:

Description Carl Roth 2010-09-29 20:38:05 CEST
The %pre scriptlet for VirtualBox-OSE-devel does not work if there are no prior installations of VirtualBox-OSE-devel.

See:

  PYXP=/usr/share/virtualbox/sdk/bindings/xpcom/python/xpcom
  [ -d "$PYXP" ] && rm -rf "$PYXP"

Note that in line 2, the final shell status is non-zero of the $PYXP directory is initially missing.  I would suggest something like

  if test -d "$PYXP"; then /bin/rm -fr "$PYXP"; fi

or

  test ! -d "$PYXP" || /bin/rm -rf "$PYXP" || :

This bug corresponds to

  VirtualBox-OSE-devel-3.2.6-2.fc13.x86_64
Comment 1 Sérgio Basto 2011-09-08 01:01:46 CEST
Can I close this with Fixed , current release ? 
Comment 2 Sérgio Basto 2011-10-04 21:09:00 CEST
closing as fixed , one month without reply , and bug with one year.
Comment 3 Sérgio Basto 2011-10-04 21:09:41 CEST
closing now