Project

Profile

Help

Issue #6982

closed

Pulp 3 - pulp-deb : APT client installing same patches again and again

Added by swisscom almost 4 years ago. Updated almost 3 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
4. Urgent
Version - Debian:
master
Platform Release:
Target Release - Debian:
OS:
CentOS 7
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Quarter:

Description

Dear support team, When setting up APT client to connect to Pulp to get it's content, I discovered that it installs the same patches again and again. Like if I run twice "apt-get upgrade -y", it will install 339 packages the two times.

The issue is due to the fact the "Installed-Size" field is missing in the Packages file produced by Pulp. "Installed-Size" is one of the mandatory fields, that is used by APT client to check if the patch is already installed or not.

Mpore information here : https://github.com/Debian/apt/issues/23 The following fields must be the same in the Packages file and /var/lib/dpkg status: "Installed-Size", "Depends", "Pre-Depends", "Conflicts", "Breaks", "Replaces". All spaces are ignored, all values are transformed to lowercase, and <= and >= are normalized into < and >.

Would it be possible to fix this issue ?

Thanks a lot

Actions #1

Updated by quba42 almost 4 years ago

I can confirm multiple discrepancies between our package indecies (Packages files) and the upstream originals.

I have seen us lose the "Installed-Size", "Size", and "Description-md5" fields, while we appear to have gained a "SHA1" field.

My test repo was http://ftp.de.debian.org/debian/ (experimental, contrib, amd64).

Since there is no one package using every possible field, there may of course be others.

We will need to look into this.

Added by msinghal over 3 years ago

Revision 347e0ef8 | View on GitHub

Fix APT client installing patches

fixes #6982 https://pulp.plan.io/issues/6982

Actions #2

Updated by pulpbot over 3 years ago

  • Status changed from NEW to POST
Actions #3

Updated by msinghal over 3 years ago

  • Status changed from POST to MODIFIED
Actions #4

Updated by quba42 almost 3 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Also available in: Atom PDF