Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't get old versions on Debian package registry with apt #27783

Closed
WooDeNDark opened this issue Oct 25, 2023 · 7 comments · Fixed by #27786
Closed

Can't get old versions on Debian package registry with apt #27783

WooDeNDark opened this issue Oct 25, 2023 · 7 comments · Fixed by #27786
Labels
topic/packages type/proposal The new feature has not been accepted yet but needs to be discussed first.

Comments

@WooDeNDark
Copy link

Description

When I try to get an older version of a package I get an error. After checking all the packages in the repository, I noticed that only the latest packages of each package group are displayed.

Gitea Version

1.20.5 built with GNU Make 4.4.1, go1.20.8 : bindata, timetzdata, sqlite, sqlite_unlock_notify

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

image
image
image

Git Version

2.40.1, Wire Protocol Version 2 Enabled

Operating System

Ubuntu 20.04

How are you running Gitea?

Docker version on Docker Hub with latest tag

Database

PostgreSQL

@KN4CK3R
Copy link
Member

KN4CK3R commented Oct 25, 2023

That's by design at the moment. Usually the debian package index contains only the latest available version and only that version is installable with apt.

@WooDeNDark
Copy link
Author

That's by design at the moment. Usually the debian package index contains only the latest available version and only that version is installable with apt.

Is it currently necessary to create components for specific versions?

@KN4CK3R
Copy link
Member

KN4CK3R commented Oct 25, 2023

That would be a workaround. I just used the latest package version then because the "big" repositories do the same. But we can list all package versions.

@KN4CK3R KN4CK3R added type/proposal The new feature has not been accepted yet but needs to be discussed first. and removed type/bug labels Oct 25, 2023
@WooDeNDark
Copy link
Author

That would be a workaround. I just used the latest package version then because the "big" repositories do the same. But we can list all package versions.

Yes, I understand. It would be convenient for the component to select all versions or only the latest one. For example, for the "main" component have only the latest version, and for "dev" have all versions

@KN4CK3R
Copy link
Member

KN4CK3R commented Oct 25, 2023

I will change it to list all versions. The Docker repository for example does that too https://download.docker.com/linux/debian/dists/bookworm/stable/binary-amd64/Packages .

@WooDeNDark
Copy link
Author

I will change it to list all versions. The Docker repository for example does that too https://download.docker.com/linux/debian/dists/bookworm/stable/binary-amd64/Packages .

Thanks

@KN4CK3R
Copy link
Member

KN4CK3R commented Oct 25, 2023

Added in #27786

lunny pushed a commit that referenced this issue Oct 29, 2023
Closes #27783

This PR lists all and not only the latest package versions in the
`Packages` index.
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 14, 2023
fuxiaohei pushed a commit to fuxiaohei/gitea that referenced this issue Jan 17, 2024
Closes go-gitea#27783

This PR lists all and not only the latest package versions in the
`Packages` index.
silverwind pushed a commit to silverwind/gitea that referenced this issue Feb 20, 2024
Closes go-gitea#27783

This PR lists all and not only the latest package versions in the
`Packages` index.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
topic/packages type/proposal The new feature has not been accepted yet but needs to be discussed first.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants