[deb/rpm] Metadata is not generated for empty repos
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
packetary |
Fix Released
|
Undecided
|
Alexandru Avadanii |
Bug Description
In certain scenarios, mirror components (e.g. trusty-security)
are present in both packetary configuration input, and in target
system's apt source definitions, but contain no packages of interest.
For such repository/
skips creating metadata (Release, Packages) for those components,
which leads to the partial mirror missing some critical files for apt,
(an empty file would be enough).
e.g.: Using packetary to create a partial Ubuntu mirror, then trying
to build a bootstrap image from the new mirror leads to:
W: Failed to fetch http://
trusty-
Run packetary:
$ packetary --threads-num 10 clone \
-t deb \
-r ubuntu_mirror.yaml \
-R ubuntu_
-d .
ubuntu_mirror.yaml:
- name: ubuntu
path: /home/alav/
priority: null
section:
- main
- multiverse
- restricted
- universe
suite: trusty
type: deb
uri: http://
ubuntu_
mandatory: exact
packages:
- name: acpi-support
[...]
Everything goes well, but the output artifacts do not contain metadata (Release, Packages etc.) for empty repositories.
$ test -f dists/trusty-
$ test -f dists/trusty/
OK!
I'll attach a patch for this; I can also submit it via gerrit if it looks ok.
I'm not really convinced my patch is the right way to do it, and I haven't tested it with RPM cloning, but it should "just work".
Fix proposed to branch: master /review. openstack. org/392937
Review: https:/