#56 Updates for f26 repos.
Merged 7 years ago by ausil. Opened 7 years ago by dustymabe.
dustymabe/fedora-atomic dusty-f26-update  into  f26

file modified
+1 -1
@@ -12,7 +12,7 @@ 

  arch        = x86_64

  release     = f26

  ref         = %(os_name)s/%(release)s/%(arch)s/%(tree_name)s

- yum_baseurl = http://dl.fedoraproject.org/pub/fedora/linux//development/rawhide/%(arch)s/os/

+ yum_baseurl = https://download.fedoraproject.org/pub/fedora/linux/development/26/Everything/%(arch)/os/

  # lorax_additional_repos = http://127.0.0.1/fedora-atomic/local-overrides

  lorax_include_packages = fedora-productimg-atomic

  docker_os_name = fedora

file added
+37
@@ -0,0 +1,37 @@ 

+ [fedora-26]

+ name=Fedora 26 - $basearch

+ failovermethod=priority

+ #baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/26/Everything/$basearch/os/

+ metalink=https://mirrors.fedoraproject.org/metalink?repo=fedora-26&arch=$basearch

+ enabled=1

+ #metadata_expire=7d

+ repo_gpgcheck=0

+ type=rpm

+ gpgcheck=1

+ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-26-$basearch

+ skip_if_unavailable=False

+ 

+ [fedora-26-updates]

+ name=Fedora 26 - $basearch - Updates

+ failovermethod=priority

+ #baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/26/$basearch/

+ metalink=https://mirrors.fedoraproject.org/metalink?repo=updates-released-f26&arch=$basearch

+ enabled=1

+ repo_gpgcheck=0

+ type=rpm

+ gpgcheck=1

+ metadata_expire=6h

+ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-26-$basearch

+ skip_if_unavailable=False

+ 

+ [fedora-26-updates-testing]

+ name=Fedora 26 - $basearch - Test Updates

+ failovermethod=priority

+ #baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/testing/26/$basearch/

+ metalink=https://mirrors.fedoraproject.org/metalink?repo=updates-testing-f26&arch=$basearch

+ enabled=1

+ gpgcheck=1

+ metadata_expire=6h

+ gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-26-$basearch

+ skip_if_unavailable=False

+ 

@@ -1,7 +1,7 @@ 

  {

      "ref": "fedora/26/${basearch}/atomic-host",

  

-     "repos": ["fedora-26", "fedora-26-updates"],

+     "repos": ["fedora-26", "fedora-26-updates", "fedora-26-updates-testing"],

  

      "selinux": true,

  

no initial comment

This should be using metalink urls.

i'm not sure if rpm-ostree supports metalink - I just tried it with metalinks with this file:

[fedora-26]
name=Fedora 26 - x86_64
failovermethod=priority
baseurl=https://mirrors.fedoraproject.org/metalink?repo=fedora-26&arch=x86_64
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-26-$basearch
skip_if_unavailable=False

[fedora-26-updates]
name=Fedora 26 updates - x86_64
failovermethod=priority
baseurl=https://mirrors.fedoraproject.org/metalink?repo=updates-released-f26&arch=x86_64
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-26-$basearch
skip_if_unavailable=False

[fedora-26-updates-testing]
name=Fedora 26 updates testing - x86_64
failovermethod=priority
baseurl=https://mirrors.fedoraproject.org/metalink?repo=updates-testing-f26&arch=x86_64
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-26-$basearch
skip_if_unavailable=False

and I get this error:

[root@rpm-ostree ~]# rpm-ostree compose tree --repo=/root/repo --cachedir=/sharedfolder/cache/rpm-ostree /sharedfolder/code/pagure.io/fedora-atomic/fedora-atomic-docker-host.json 
No previous commit for fedora/26/x86_64/atomic-host
error: cannot update repo 'fedora-26': repomd.xml parser error: Element <repomd> was not found - Bad repomd file

rpm-ostree :arrow_right: libdnf :arrow_right: librepo, so it's going to work the same for every libdnf consumer.

The bug is you need metalink= instead of baseurl=. In general, we should have a SOP to copy the git repo for fedora-repos.

rpm-ostree ➡ libdnf ➡ librepo, so it's going to work the same for every libdnf consumer.

I thought so. Wasn't sure why it wasn't working for me :(

The bug is you need metalink= instead of baseurl=. In general, we should have a SOP to copy the git repo for fedora-repos.

+1 fixed. and I also synced the entries in the file with their counterparts in fedora-repos.

rebased

7 years ago

lets not use hard coded arches anywhere please.

fine, but i am going to hardcode the release because we it wouldn't make sense considering we are on the f26 branch

rebased

7 years ago

Pull-Request has been merged by ausil

7 years ago