<?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>15387</bug_id>
          
          <creation_ts>2024-02-07 15:15:18 +0000</creation_ts>
          <short_desc>opkg doesn&apos;t complain when updating from a Debian package feed</short_desc>
          <delta_ts>2024-02-14 08:42:15 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>opkg</product>
          <component>opkg</component>
          <version>0.6.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Opdenacker">michael.opdenacker</reporter>
          <assigned_to name="Alex Stewart">alex.stewart</assigned_to>
          <cc>bruce.ashfield</cc>
    
    <cc>michael.opdenacker</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>98150</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Opdenacker">michael.opdenacker</who>
    <bug_when>2024-02-07 15:15:18 +0000</bug_when>
    <thetext>I found that &quot;opkg update&quot; doesn&apos;t mind when given a Debian package feed (by mistake in my case):

root@qemux86-64:~# opkg update
Downloading http://192.168.1.20:8000/all/Packages.gz.
Updated source &apos;uri-all-0&apos;.
Downloading http://192.168.1.20:8000/core2-64/Packages.gz.
Updated source &apos;uri-core2-64-0&apos;.
Downloading http://192.168.1.20:8000/qemux86_64/Packages.gz.
Updated source &apos;uri-qemux86_64-0&apos;.

I know that opkg is meant to be largely compatible with dpkg, but couldn&apos;t it warn when it doesn&apos;t find any ipk package in the various Packages.gz files?

Because of that &quot;opkg list-upgradable&quot; returns nothing and no package can be used from the feed.

I also though about having &quot;opkg list-upgradable&quot;, &quot;opkg install&quot; and &quot;opkg upgrade&quot; complain when they don&apos;t see any matching package, but this can perfectly happen when using an ipk feed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98191</commentid>
    <comment_count>1</comment_count>
    <who name="Alex Stewart">alex.stewart</who>
    <bug_when>2024-02-12 23:18:40 +0000</bug_when>
    <thetext>This seems like a developer tooling gap, rather than a situation were we would want to error to the user.

As you said, providing opkg with a debian package list (or even a mixed package list) is a totally valid state. I think opkg will happily process: dpkg, ipk, opk, and raw .ar archives; so long as they comply with the internal layout that opkg expects.

And I think the assumption in opkg deployments is that the package feed is being prepared by the distro builder. So if the user is getting a well-formed package index from their distro, but then gets an error/warning from opkg about it containing no IPKs, what is the *user* supposed to do about that?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98200</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Opdenacker">michael.opdenacker</who>
    <bug_when>2024-02-14 08:42:15 +0000</bug_when>
    <thetext>Hi Alex
Thanks for your quick response and clarifications.
Let&apos;s close this bug then.
Thanks again</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>