summaryrefslogtreecommitdiffstats
path: root/scripts/wic
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2015-09-02 13:58:15 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-09-03 12:43:30 +0100
commit14b47e22f9b2566320ab6ef103da1501bca129de (patch)
tree74baa327d00824340b2a16790e248b58129f124f /scripts/wic
parent1561970e88c988cc8e8d6626749777c1bbd8123e (diff)
downloadpoky-14b47e22f9b2566320ab6ef103da1501bca129de.tar.gz
wic: get rid of listing properties
Functionality of listing and using properties of wic images does not exist in the wic code. However, there are plenty of help and usage content about it, which is very confusing. Removed everything regarding image properties from wic codebase. (From OE-Core rev: af0a6d547a5a3efefdd4900f7079dfd10b85342d) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/wic')
-rwxr-xr-xscripts/wic13
1 files changed, 4 insertions, 9 deletions
diff --git a/scripts/wic b/scripts/wic
index c99c5042bd..eb252a26ef 100755
--- a/scripts/wic
+++ b/scripts/wic
@@ -249,18 +249,13 @@ def wic_create_subcommand(args, usage_str):
249 249
250def wic_list_subcommand(args, usage_str): 250def wic_list_subcommand(args, usage_str):
251 """ 251 """
252 Command-line handling for listing available image properties and 252 Command-line handling for listing available images.
253 values. The real work is done by image.engine.wic_list() 253 The real work is done by image.engine.wic_list()
254 """ 254 """
255 parser = optparse.OptionParser(usage=usage_str) 255 parser = optparse.OptionParser(usage=usage_str)
256 args = parser.parse_args(args)[1]
256 257
257 parser.add_option("-o", "--outfile", action="store", 258 if not engine.wic_list(args, scripts_path):
258 dest="properties_file",
259 help="dump the possible values for image properties to a JSON file")
260
261 (options, args) = parser.parse_args(args)
262
263 if not engine.wic_list(args, scripts_path, options.properties_file):
264 logging.error("Bad list arguments, exiting\n") 259 logging.error("Bad list arguments, exiting\n")
265 parser.print_help() 260 parser.print_help()
266 sys.exit(1) 261 sys.exit(1)