<?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>12130</bug_id>
          
          <creation_ts>2017-09-27 02:37:30 +0000</creation_ts>
          <short_desc>Layer index update script outputs initial info to console</short_desc>
          <delta_ts>2026-02-05 16:22:40 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>Layer Index</product>
          <component>Layer Index</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>.</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>6.99</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Eggleton">bluelightning</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>brian.avery</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>tim.orling</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</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>77159</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2017-09-27 02:37:30 +0000</bug_when>
    <thetext>As part of getting the information we need to determine layer dependencies we run the update_layer.py from update.py with --initial and pass the required information back via stdout, however that results in it being printed to the console:

----------- snip -----------
$ python3 layerindex/update.py -l openembedded-core -b master
INFO: Fetching remote repository git://git.openembedded.org/openembedded-core
INFO: Fetching bitbake from remote repository git://git.openembedded.org/bitbake
NOTE: Starting bitbake server...
INFO: Collecting data for layer openembedded-core on branch master
BBFILE_COLLECTIONS = &quot;core&quot;
LAYERVERSION = &quot;11&quot;
LAYERDEPENDS = &quot;&quot;
LAYERRECOMMENDS = &quot;&quot;
INFO: Sorting layers for branch master
...
----------- snip -----------

This is quite ugly, we need a way to hide this output (without hiding any errors from update_layer.py if they do happen). Perhaps we need a different channel to pass the data back in?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96884</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-10-24 14:24:37 +0000</bug_when>
    <thetext>Bulk move from 4.99 or 0.00 to 5.99</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97194</commentid>
    <comment_count>2</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2023-11-02 23:43:58 +0000</bug_when>
    <thetext>For reference, the --initial option in update_layer.py:
    ...
    parser.add_option(&quot;-i&quot;, &quot;--initial&quot;,
            help = &quot;Print initial values parsed from layer.conf only&quot;,
            ...

which is called in the cmd built in main() for update.py:
       ...
       cmd = prepare_update_layer_command(options, branchobj, layer,initial=True)
       logger.debug(&apos;Running layer update command: %s&apos; % cmd)
       ret, output = utils.run_command_interruptible(cmd)
       logger.debug(&apos;output: %s&apos; % output)
       ...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98081</commentid>
    <comment_count>3</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2024-02-01 03:18:23 +0000</bug_when>
    <thetext>This means we can easily miss the fact that a layer can no longer be fetched:

ERROR: Fetch of layer meta-telephony failed: Cloning into &apos;git___git_osmocom_org_meta-telephony&apos;...
fatal: unable to connect to git.osmocom.org:
git.osmocom.org[0: 78.46.96.155]: errno=Connection refused
git.osmocom.org[1: 2a01:4f8:120:8470::2]: errno=Cannot assign requested address
ERROR: Fetch of layer meta-pypy failed: Cloning into &apos;https___github_com_mzakharo_meta-pypy_git&apos;...
fatal: could not read Username for &apos;https://github.com&apos;: terminal prompts disabled
ERROR: Fetch of layer meta-sitec-score failed: Cloning into &apos;https___github_com_sitec-systems_meta-sitec-score&apos;...
fatal: could not read Username for &apos;https://github.com&apos;: terminal prompts disabled
ERROR: Fetch of layer meta-sitec-bsp failed: Cloning into &apos;https___github_com_sitec-systems_meta-sitec-bsp&apos;...
fatal: could not read Username for &apos;https://github.com&apos;: terminal prompts disabled
ERROR: Fetch of layer meta-tangle failed: Cloning into &apos;https___github_com_iotaledger_meta-iota&apos;...
fatal: could not read Username for &apos;https://github.com&apos;: terminal prompts disabled
ERROR: Fetch of layer meta-mediatek failed: Cloning into &apos;https___gitlab_com_baylibre_mediatek_meta-mediatek_git&apos;...
fatal: could not read Username for &apos;https://gitlab.com&apos;: terminal prompts disabled</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>104171</commentid>
    <comment_count>4</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2026-02-05 16:22:40 +0000</bug_when>
    <thetext>Move from 5.99 to 6.99</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>