Trees | Indices | Help |
---|
|
1 # 2 # Copyright (c) 2008--2016 Red Hat, Inc. 3 # 4 # This software is licensed to you under the GNU General Public License, 5 # version 2 (GPLv2). There is NO WARRANTY for this software, express or 6 # implied, including the implied warranties of MERCHANTABILITY or FITNESS 7 # FOR A PARTICULAR PURPOSE. You should have received a copy of GPLv2 8 # along with this software; if not, see 9 # http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt. 10 # 11 # Red Hat trademarks are not licensed under GPLv2. No permission is 12 # granted to use or replicate Red Hat trademarks that are incorporated 13 # in this software or its documentation. 14 # 15 16 from config_common import handler_base 17 from config_common.rhn_log import log_debug, die 1820 _usage_options = "config_channel"3822 log_debug(2) 23 r = self.repository 24 25 if len(self.args) != 1: 26 die(5, "Exactly one argument required") 27 28 channel = self.args[0] 29 30 print("Files in config channel '%s':" % channel) 31 32 files = r.list_files(channel) 33 if not files: 34 print("(no files in config channel)") 35 else: 36 for file in files: 37 print(" %s" % file)
Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Wed Mar 4 07:37:43 2020 | http://epydoc.sourceforge.net |