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

Re: [dpkg] Kommando bei status change ausführen?



Am 2009-03-13 11:44:13, schrieb Peter Jordan:
> Das geht dann aber nicht für jedes einzelne Paket? Und wenn ich mit dpkg
> -i pkg.deb installiere wird die Mail auch nicht verschickt?

Das ist richtig.

Das einzige was Du machen könntest währe ein wraper für dpkg.

1)  dpkg nach dpkg.orig umbenennen
2)  dpkg als script anlegen
    ----8<----------------------------------------
    #!/bin/sh

    MY_ARGS=$*
    MY_OLD_PKGS=$(ls /var/lib/dpkg/info/*.list)

    dpkg ${MY_ARGS}

    MY_NEW_PKGS=$(ls /var/lib/dpkg/info/*.list)

    if [ "${MY_OLD_PKGS}" != "${MY_NEW_PKGS}" ] ; then

      mach was

    fi
    ----8<----------------------------------------


Thanks, Greetings and nice Day/Evening
    Michelle Konzack
    Systemadministrator
    24V Electronic Engineer
    Tamay Dogan Network
    Debian GNU/Linux Consultant

-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
<http://www.tamay-dogan.net/>                 Michelle Konzack
<http://www.can4linux.org/>                   Apt. 917
<http://www.flexray4linux.org/>               50, rue de Soultz
Jabber linux4michelle@jabber.ccc.de           67100 Strasbourg/France
IRC #Debian (irc.icq.com)                     Tel. DE: +49 177 9351947
ICQ #328449886                                Tel. FR: +33  6  61925193

Attachment: signature.pgp
Description: Digital signature


Reply to: