Library and eponymous utility to manage the entire lifecycle of repositories
Go to file
Alexandru Avadanii cb261b0994 clone: Create metadata for empty components
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/requirements combinations, packetary currently
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://127.0.0.1:8080/mirrors/ubuntu/dists/\
   trusty-security/multiverse/binary-amd64/Packages  404

Closes-bug: 1638631

Change-Id: I850b43d5b4d8742d99e9a5702cc9ad4de881a401
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2016-12-13 16:55:04 +01:00
doc Add documentation for packetary 2016-08-03 13:22:38 +03:00
packetary clone: Create metadata for empty components 2016-12-13 16:55:04 +01:00
.coveragerc [packetary] initial commit 2015-10-20 19:33:48 +00:00
.gitignore [packetary] initial commit 2015-10-20 19:33:48 +00:00
.gitreview Adjust .gitreview 2016-01-22 16:44:01 +03:00
.mailmap [packetary] initial commit 2015-10-20 19:33:48 +00:00
.testr.conf [packetary] initial commit 2015-10-20 19:33:48 +00:00
CONTRIBUTING.rst [packetary] initial commit 2015-10-20 19:33:48 +00:00
HACKING.rst [packetary] initial commit 2015-10-20 19:33:48 +00:00
LICENSE Initial commit 2015-04-02 19:05:52 +03:00
MAINTAINERS Drop files are not related to packetary 2015-12-24 13:00:48 +03:00
MANIFEST.in [packetary] initial commit 2015-10-20 19:33:48 +00:00
README.rst Drop files are not related to packetary 2015-12-24 13:00:48 +03:00
babel.cfg [packetary] initial commit 2015-10-20 19:33:48 +00:00
openstack-common.conf [packetary] initial commit 2015-10-20 19:33:48 +00:00
requirements.txt Align to global requirements 2016-05-19 13:18:05 +03:00
setup.cfg Added packaging driver to build RPM by using mock 2016-07-05 16:49:06 +03:00
setup.py Fixed retrieve groups.xml on merge repositories 2016-03-01 15:51:08 +03:00
setup_hooks.py Update file-headers 2015-12-29 12:08:39 +03:00
test-requirements.txt Align to global requirements 2016-05-19 13:18:05 +03:00
tox.ini Add package filtering feature 2016-02-20 07:00:52 +03:00

README.rst

Repository structure

  • debian Specs for DEB packages.

  • doc Documentation for packetary module.

  • packetary Package provides object model and API for dealing with deb and rpm repositories. One can use this framework to implement operations like building repository from a set of packages, clone repository, find package dependencies, mix repositories, pull out a subset of packages into a separate repository, etc.

    Features:

    • Common interface for different package-managers.
    • Utility to build dependency graph for package(s).
    • Utility to create mirror of repository according to dependency graph.
  • specs Specs for RPM packages.