On Tue, 02 Jun 2009, Alban Browaeys wrote:

> And there seems to be a bug in the mv_db is triggers:
> [ -e /var/lib/mediatomb/sqlite3.db ] && \
>         cp --preserve /var/lib/mediatomb/sqlite3.db 
> /var/lib/mediatomb/mediatomb.db 
> alsways returns 1 which errors out the postinst. Adding
> "|| return 0"
> at the end of it helps. Probably adding parenthesis around to avoid it 
> applying to the "cp" would be good.

The usual approach for this is to either do:

! [ -e file ] || cp file target

or plain old ifs:
if [ -e file ]; then
        cp file target
fi

-- 
                           |  .''`.  ** Debian GNU/Linux **
      Peter Palfrader      | : :' :      The  universal
 http://www.palfrader.org/ | `. `'      Operating System
                           |   `-    http://www.debian.org/



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to