#!/usr/bin/sh
#----------------------------------------------------------------------------
# /tmp/preinstall.sh - libgphoto2_port12 preinstallation
#
# Creation   :  2026-02-25 holbru
# Last update:  $Id$
#
# Copyright (c) 2026-@@YEAR@@ Holger Bruenjes, holgerbruenjes(at)gmx(dot)net
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#----------------------------------------------------------------------------

# set package name
package_name=libgphoto2_port12

# ---------------------------------------------------------------------------
# clean up
# ---------------------------------------------------------------------------
installed=$(/usr/bin/eisman check libgphoto2-6 3.6.5)
if [ "${installed}" = "new" ]
then
    if [ -f /etc/filelist.d/libgphoto2-6-files.txt ]
    then
        /usr/bin/sed -i '/libgphoto2_port/d' /etc/filelist.d/libgphoto2-6-files.txt
    fi
fi

exit 0
# ---------------------------------------------------------------------------
# end
# ---------------------------------------------------------------------------
