Note the existing tests in meta/lib/oeqa/runtime/cases/dnf.py - the do
use a remote http repo to install a file, but the repo configuration
is supplied on command line with --repofrompath, and upgrading is not
tested.

Alex

On Fri, 12 Jan 2024 at 15:05, Michael Opdenacker via
lists.yoctoproject.org
<michael.opdenacker=bootlin....@lists.yoctoproject.org> wrote:
>
> Greetings,
>
> I'm making binary package update tests on Nanbield.
> No problem with an ipk package feed. If I remember correctly:
>
>  > opkg update
>  > opkg upgrade
>
> I'm running this from a Nanbield 4.3.1 image, using feeds generated on
> another machine with the tip of the "nanbield" branch.
>
> If I switch to
> PACKAGE_CLASSES = "package_rpm"
>
> If can't seem to be able to do the same thing:
>
>  > dnf upgrade
>
> OE Remote Repo:8000                                                           
>                                                                               
>                        0.0  B/s |   0  B     00:00
>
> Error: Failed to download metadata for repo 'oe-remote-repo8000': Cannot 
> download repomd.xml: Empty mirrorlist and no basepath specified!
>
> Ignoring repositories: oe-remote-repo8000
>
> Dependencies resolved.
>
> Nothing to do.
>
> Complete!
>
>
> My http server doesn't even receive any request!
>
> Here are the contents of /etc/yum.repos.d/oe-remote-repo8000.repo:
>
> [oe-remote-repo8000]
> name=OE Remote Repo:8000
> baseurl=192.168.1.34:8000
> gpgcheck=0
>
> However the following command works:
>  > wget http://192.168.1.34:8000/repodata/repomd.xml
>
> On Fedora 39, I can just run "dnf upgrade" and everything works. I'm
> starting to suspect that something is missing in the rpm related files
> we generate.
>
> At least, this shows the usefulness of implementing such checks (working
> on these).
>
> Cheers
> Michael.
>
> --
> Michael Opdenacker, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com
>
>
> 
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#62137): https://lists.yoctoproject.org/g/yocto/message/62137
Mute This Topic: https://lists.yoctoproject.org/mt/103682993/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to