3
# Copyright (C) 2013 Etersoft
4
# Copyright (C) 2013 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/>.
24
[ -n "$pkg_files" ] || return
26
case $(get_package_type $pkg_files) in
29
docmd rpm -q --conflicts -p $pkg_files
32
# a= docmd dpkg -I $pkg_files | grep "^ *Depends:" | sed "s|^ *Depends:||g"
35
fatal "Have no suitable command for $PMTYPE"
43
[ -n "$pkg_names" ] || return
48
# FIXME: need fix for a few names case
49
# FIXME: too low level of requires name (libSOME.so)
50
if is_installed $pkg_names ; then
51
CMD="rpm -q --conflicts"
53
EXTRA_SHOWDOCMD=' | grep "Conflicts:"'
54
docmd apt-cache show $pkg_names | grep "Conflicts:"
60
# FIXME: use hi level commands
61
CMD="rpm -q --conflicts"
70
# FIXME: need fix for a few names case
71
if is_installed $pkg_names ; then
72
showcmd dpkg -s $pkg_names
73
a='' dpkg -s $pkg_names | grep "^Conflicts:" | sed "s|^Conflicts:||g"
76
EXTRA_SHOWDOCMD=' | grep "Conflicts:"'
77
docmd apt-cache show $pkg_names | grep "Conflicts:"
81
# TODO: why-not show who conflicts with us
83
# docmd aptitude why-not $pkg_names
87
# assure_exists equery
88
# CMD="equery depgraph"
91
fatal "Have no suitable command for $PMTYPE"
102
[ -n "$pkg_filenames" ] || fatal "Conflicts: Missing package(s) name"