<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>7512</bug_id>
          
          <creation_ts>2015-03-25 02:51:48 +0000</creation_ts>
          <short_desc>recipetool: -m option doesn&apos;t work</short_desc>
          <delta_ts>2015-03-30 08:14:32 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>Meta-yocto</product>
          <component>meta-yocto</component>
          <version>1.8</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.8 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yi Zhao">yi.zhao</reporter>
          <assigned_to name="Paul Eggleton">bluelightning</assigned_to>
          <cc>alexandru.c.georgescu</cc>
    
    <cc>ke.zou</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>zhangle.yang</cc>
          
          <qa_contact name="Alexandru Georgescu">alexandru.c.georgescu</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>New (Never tested)</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>49724</commentid>
    <comment_count>0</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2015-03-25 02:51:48 +0000</bug_when>
    <thetext>Git rev: master/369932178fe9e7aa4a6d0e2ef1e2e539be701d02

Steps:
Run command:

recipetool create -m qemuarm -o snake_0.11.1.bb -x /tmp/snake-0.11.1 https://fedorahosted.org/releases/s/n/snake/snake-0.11.1.tar.bz2

I got the following error:
####################
usage: recipetool [-h] [-d] [-q] [--color COLOR] &lt;subcommand&gt; ...
recipetool: error: unrecognized arguments: https://fedorahosted.org/releases/s/n/snake/snake-0.11.1.tar.bz2
####################

If I removed the -m option, the command worked well:

recipetool create -o snake_0.11.1.bb -x /tmp/snake-0.11.1 https://fedorahosted.org/releases/s/n/snake/snake-0.11.1.tar.bz2

NOTE: Fetching https://fedorahosted.org/releases/s/n/snake/snake-0.11.1.tar.bz2...
NOTE: Scanning the entire source tree, as one or more of the following setup keywords are non-literal: py_modules, scripts, packages.
NOTE: Scanning paths for packages &amp; dependencies: .
NOTE: Recipe snake_0.11.1.bb has been created; further editing may be required to make it fully functional</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49888</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2015-03-28 05:09:20 +0000</bug_when>
    <thetext>The -m option doesn&apos;t accept an argument (a recipe is either machine-specific or it isn&apos;t, it&apos;s not a case of specifying the actual machine) therefore it&apos;s being handled as a positional argument, hence the error.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49898</commentid>
    <comment_count>2</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2015-03-30 08:14:32 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; The -m option doesn&apos;t accept an argument (a recipe is either
&gt; machine-specific or it isn&apos;t, it&apos;s not a case of specifying the actual
&gt; machine) therefore it&apos;s being handled as a positional argument, hence the
&gt; error.

Verified as per above comment.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>