1#
2# Copyright (C) 2016 Red Hat, Inc.
3#
4# This copyrighted material is made available to anyone wishing to use,
5# modify, copy, or redistribute it subject to the terms and conditions of
6# the GNU General Public License v.2, or (at your option) any later version.
7# This program is distributed in the hope that it will be useful, but WITHOUT
8# ANY WARRANTY expressed or implied, including the implied warranties of
9# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
10# Public License for more details.  You should have received a copy of the
11# GNU General Public License along with this program; if not, write to the
12# Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
13# 02110-1301, USA.  Any Red Hat trademarks that are incorporated in the
14# source code or documentation are not subject to the GNU General Public
15# License and may only be used or replicated with the express permission of
16# Red Hat, Inc.
17#
18
19from __future__ import print_function
20from __future__ import absolute_import
21from __future__ import unicode_literals
22from dnf.i18n import _
23from dnf.cli.commands.repoquery import RepoQueryCommand
24
25
26class DeplistCommand(RepoQueryCommand):
27    """
28    The command is alias for 'dnf repoquery --deplist'
29    """
30
31    aliases = ('deplist',)
32    summary = _("[deprecated, use repoquery --deplist] List package's dependencies and what packages provide them")
33
34    def configure(self):
35        RepoQueryCommand.configure(self)
36        self.opts.deplist = True
37