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

Parse error while updating repo #53

Open
netlexer opened this issue Feb 28, 2018 · 14 comments
Open

Parse error while updating repo #53

netlexer opened this issue Feb 28, 2018 · 14 comments

Comments

@netlexer
Copy link

I've created a custom repo to hold packages from the AUR. Occasionally, an update will fail, e.g.:

$ repose -vf  custom                                 
repose: failed to parse files for jekyll-3.7.0-3/files

I'm not sure if it's the package or repose itself, jekyll is just an example.

Updating from scratch (using --rebuild) works, though this is time consuming.

@AladW
Copy link

AladW commented Feb 28, 2018

#52?

@netlexer
Copy link
Author

I don't think so, as I didn't use repo-add at all to create the db. I just used 'repose -vf custom.db' in a directory with all the files.

@stefanhusmann
Copy link

Similar (?) thing here: failed to parse files for eggwm-qt5/desc.

@lovesegfault
Copy link

lovesegfault commented Apr 26, 2018

I can confirm the same issue here with repose: failed to parse desc for ttf-font-awesome-4-4.7.0-5/desc. I get this when trying to install any package with aursync. In particular I encountered the issue installing chromaprint-git, which is completely unrelated to ttf-font-awesome-4.

How can one do the "rebuild" work-around?

@AladW
Copy link

AladW commented Apr 26, 2018

repose -vf custom --rebuild

@lovesegfault
Copy link

@AladW repose --rebuild complains about lacking arguments. repose --rebuild aur (aur is the name of my local repo) does nothing, if you use the verbose flag it says writing aur.db..., but it finishes in a split second, and doesn't fix the issue.

@AladW
Copy link

AladW commented Apr 27, 2018

I edited my comment, put perhaps --rebuild is also effected by this. You could remove the database and then run repose again...

Have you tried the rust branch?

@lovesegfault
Copy link

I can confirm that repose -vf custom --rebuild does not fix the problem for me. It runs successfully, but trying aursync chromaprint-git fails with the same error I noted before. I'm going to try using the rust branch.

@lovesegfault
Copy link

The rust branch does not build on the latest nightly. I'm going to open an issue and try fixing it.

@lovesegfault
Copy link

@AladW Could you perhaps propose a workaround for this while it isn't fixed? It's just annoying since it renders aursync unusable on my system.

@lovesegfault
Copy link

lovesegfault commented Apr 29, 2018

Apparently:

  1. Removing the offending package
  2. Running a rebuild as noted earlier
  3. Installing the package through aursync

Seems to solve the issue!

EDIT This does not work, unfortunately. If you try to install a package afterwards the error will come back.

@AladW
Copy link

AladW commented Apr 29, 2018

Workaround from the aurutils perspective is to remove repose, so it falls back to repo-add. Not really something I enjoy saying on the repose tracker, but there it is...

@aphirst
Copy link

aphirst commented Jul 5, 2018

I'm getting the same issue, now. It's not clear what caused it, but once it's caused, no matter what I seem to try, I can't "fix" the existing db. I think it works fine again for a while if I nuke the db and make it totally from scratch, but it's not really a fix since eventually the problem comes back. I'll update this post if I can work anything else out.

@lovesegfault
Copy link

@aphirst Use aurutils-git it no longer uses repose and works fine. Or wait until the new version gets released.

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

5 participants