Kerala Cyber Warriors
KCW Uploader V1.1

Path : /var/lib/dpkg/info/
File Upload :
Current File : //var/lib/dpkg/info/usrmerge.prerm

#!/bin/sh -e

can_remove() {
  dpkgconf='/etc/dpkg/dpkg.cfg.d/usrmerge'

  [ -e "$dpkgconf" ] || return 0

  local pkgs="$(awk '/^# [^ ]+$/ { print $2 }' $dpkgconf)"
  [ "$pkgs" ] || return 0

  local installed="$(dpkg-query --showformat='${Package}\n' --show $pkgs 2> /dev/null)"

  if [ "$installed" ]; then
    cat <<END

Some installed packages have not yet been converted to support usrmove:
$installed

If you remove this package then updating them will fail.
Please delete $dpkgconf to confirm that you understand this.

END
    exit 1
  fi
}

case "$1" in
    remove)
    # check if the package can be safely removed
    can_remove
    ;;
esac

# Automatically added by dh_installdeb/12.7.1ubuntu1
dpkg-maintscript-helper rm_conffile /etc/dpkg/dpkg.cfg.d/usrmerge 19\~ usrmerge -- "$@"
# End automatically added section



-=[ KCW uplo4d3r c0ded by cJ_n4p573r ]=-
Ⓒ2017 ҠЄГѦLѦ СүѣЄГ ЩѦГГіѺГՏ