3
# Copyright (C) 2015, 2022 Etersoft
4
# Copyright (C) 2015, 2022 Vitaly Lipatov <lav@etersoft.ru>
6
# This program is free software: you can redistribute it and/or modify
7
# it under the terms of the GNU Affero General Public License as published by
8
# the Free Software Foundation, either version 3 of the License, or
9
# (at your option) any later version.
11
# This program is distributed in the hope that it will be useful,
12
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
# GNU Affero General Public License for more details.
16
# You should have received a copy of the GNU Affero General Public License
17
# along with this program. If not, see <http://www.gnu.org/licenses/>.
20
# TODO: rpm list from bash_completion in /var/log/rpmpkgs
25
TDIR="$(mktemp -d)" || fatal
29
for ft in $(ls /usr/lib/rpm/*.filetrigger | sort) ; do
30
echo "Try run $ft ..."
31
echo $TDIR/added $TDIR/removed | a='' time $ft
33
rm -f $TDIR/added fatal
36
wc -l /var/lib/rpm/files-awaiting-filetriggers
39
epm_checksystem_ALTLinux()
41
fatal "Not yet implemented"
49
is_root && fatal "Do not use checksystem under root"
60
epm_checksystem_$DISTRNAME
63
fatal "Have no suitable command for $PMTYPE"
70
if [ "$1" = "--debug" ] ; then