Project

Profile

Help

Story #206

closed

As a user, I can specify a whitelist of packages for sync

Added by mmccune@redhat.com about 9 years ago. Updated over 2 years ago.

Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Sprint/Milestone:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

There is no way currently to apply a whitelist to a yum repository feed. There are often cases where repositories contain large sets of packages that are never used when only a small, specific set are actually desired. The user should have the ability to specify on the repo a whitelist of package names which prevent packages from being synced thus saving disk space and sync time.

This will done using a new importer option named 'whitelist' which will contain a comma separated list of package names which will be synced. This usage will not support any dependency solving. The packages from the upstream metadata that are also in the whitelist will be created as units. Packages not in the whitelist will not have unit definitions created for then. If 'whitelist' is not defined on the importer, then the whitelist will have no effect (default, download-all behavior).

The package names are expected to not specify versions. All available versions available will be downloaded.

Here is an example snippet of the importer definition:

{
    "whitelist": [
        "foo",
        "bar"
    ]
}

At publish time, the metadata will only contain units that were imported. Therefore, any units omitted due to the whitelist won't be in the metadata or included as published content. This is true for both traditional and lazy syncing.

The total reported for downloading will also need to be correct based on the intersection of package metadata and the whitelist.


Related issues

Blocks RPM Support - Story #1314: Extend whitelist importer option to optionally include dependenciesCLOSED - WONTFIX

Actions

Also available in: Atom PDF