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

Failing to parse pagetotal #2

Closed
ids1024 opened this issue Aug 2, 2014 · 2 comments
Closed

Failing to parse pagetotal #2

ids1024 opened this issue Aug 2, 2014 · 2 comments

Comments

@ids1024
Copy link

ids1024 commented Aug 2, 2014

Aurlist is unable to get the pagetotal, and thus fails to run. The layout must have been changed in one of the recent AUR revisions.

This seems to fix it:

-pagetotal=$(curl -s "$url" 2>/dev/null | grep "packages found. Page 1 of" | awk NR==1 | \
+pagetotal=$(curl -s "$url" 2>/dev/null | grep -P "packages found.\t\t\t\t\tPage 1 of" | awk NR==1 | \
@oshazard
Copy link
Owner

oshazard commented Aug 3, 2014

@ids1024
Thank you for the bug report AND the fix! I've pushed the commit.

Unfortunately, my account has been marked as a bot, so will have to wait for that to be resolved before the repository is accessible (I assume you may not even receive this reply).

@oshazard
Copy link
Owner

oshazard commented Aug 3, 2014

Updated AUR package.

Also added full scrape from today to randomfiles.
Just unxz and place in /usr/share/aurlist/

@oshazard oshazard closed this as completed Aug 3, 2014
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