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

Unfindable package after bad packaging #49

Closed
btkostner opened this issue Aug 3, 2017 · 5 comments
Closed

Unfindable package after bad packaging #49

btkostner opened this issue Aug 3, 2017 · 5 comments

Comments

@btkostner
Copy link
Contributor

btkostner commented Aug 3, 2017

So I had a package in the repository that had no DEBIAN/md5sum lines. When I would run process --force --verbose the package would be found, but it had no interesting files and would be skipped.

I fixed the package, reuploaded it to the repository, verified it had the DEBIAN/md5sum lines, and was included in the repository packages file. But after forget-found --force and cleanup, appstream-generator doesn't seem to find the package. There is no mention of it when running process --force --verbose even though all the other packages are found.

Appstream html
Repository Url
Actual Package link

Using v0.6.5 built from source
Appstream version 0.11.2 also built from source
Ubuntu xenial 16.04

Will post appstream-generator output tonight.

@ximion
Copy link
Owner

ximion commented Aug 3, 2017

Does the package have a higher version than before? Or did you just override the old one with one of the exact same version? In the latter case, this behavior is actually expected and not a bug, since this thing never happens at all in any Debian repository.

@btkostner
Copy link
Contributor Author

It was the same version, but I would expect the cleanup or forget-found command to clean up any sort of previous history / cache of packages.

@ximion
Copy link
Owner

ximion commented Aug 3, 2017

forget-found just (as the name implies) removes found components or the not-found state from a package. We do never read in the file list again, once we processed a package.
The cleanup method removes things from the media cache and deletes packages that are not in the Packages file anymore.

I could maybe add a new method to completely delete all information we have on a package (could be useful occasionally). But overriding a package with a new one, keeping the version, is evil and should not be done (unless one is testing internally).

@btkostner
Copy link
Contributor Author

I'm going to close this then, as it was just a misunderstanding of what the commands actually do.

@ximion
Copy link
Owner

ximion commented Aug 3, 2017

...which means I really need to add a manpage with the next release :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants