[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#677146: python-uno uses file from libreoffice-core in preinst without declaring PreDepends



found 677146 1:3.4.6-2
thanks

On Mon, Jun 11, 2012 at 05:01:20PM -0400, Mike O'Connor wrote:
> Package: python-uno
> Version: 1:3.5.3-5
> Severity: serious

It would have been nice if you could have marked it sanely so that it would
not block this with other RC and security fixes from migrating:

rene@frodo:~/Debian/Pakete/LibreOffice/bpo/libreoffice-3.4.6$ cat debian/python-uno.preinst.in
#!/bin/bash

set -e

#INCLUDE_SHELL_LIB#

if [ "$1" = "upgrade" ]; then
        rm -rf /usr/lib/libreoffice/share/extensions/script-provider-for-python
        sync_extensions
fi

#DEBHELPER#


> Justification: Policy 7.2

come on...

> during an upgrade, the python-uno preinst script calls:
> 
> /usr/lib/libreoffice/program/unopkg
> 
> This file seems to come from the libreoffice-core pacakge.  According

No, it comes from -common.

> to the policy:
> 
>     "Pre-Depends are also required if the preinst script depends on
>     the named package"

Seriously I'd like to avoid this.

Note that the preinst checks whether unopkg is functional:

  if HOME=$INSTDIR /usr/lib/libreoffice/program/unopkg list --bundled >/dev/null 2>/dev/null; then
    if [ -e /usr/lib/libreoffice/share/prereg/bundled ] && readlink /usr/lib/libreoffice/share/prereg/bundled 2>&1 >/dev/null && [ -L $d/ure-link ]; then

> I found this when helping someone that was having trouble upgrading
> from squeeze to wheezy and was getting a preinst failure due to this
> file being missing.

What is your exact problem? And wow. squeeze->wheezy and then you file it
against 3.5.3-5?

Regards,

Rene



Reply to: