You are not logged in.
cower has evolved quite much since last time I checked. Good job falconindy.
Some features I'd like to see:
Option to sort --search and --msearch results by number of votes (descendent).
Add an indicator to signal "Out of Date" in search results, when color's off. Maybe just a simple * or [x] at the end.
For --msearch option, print only "Out of Date" packages, making life easier for AUR package maintainers.
These are what I consider useful options (which I implemented in dzlad back when learning a bit of Ruby).
Thanks for your work.
This silver ladybug at line 28...
Offline
Bug report: cower doesn't respect http_proxy environment variable.
Offline
Bug report: cower doesn't respect http_proxy environment variable.
Closed: not a bug.
connections by default use https, so you need to https_proxy or all_proxy. Alternatively, use --nossl or set NoSSL in the config.
Offline
cower has evolved quite much since last time I checked. Good job falconindy.
Some features I'd like to see:
Option to sort --search and --msearch results by number of votes (descendent).
Add an indicator to signal "Out of Date" in search results, when color's off. Maybe just a simple * or [x] at the end.
For --msearch option, print only "Out of Date" packages, making life easier for AUR package maintainers.
These are what I consider useful options (which I implemented in dzlad back when learning a bit of Ruby).
Thanks for your work.
Noted. The second I'm definitely interested in fixing. The first and the third can already be done with the --format flag and some other unix tools, so I'm not convinced I'll be adding those.
Offline
...can already be done with the --format flag and some other unix tools...
Yes, --format is indeed a good idea! Thanks for the tip.
Before you officially implement any of my requests, I can just use this hack:
search_sort_by_votes()
{
cower -s "${1}" --format='aur/%n %v (%o)%t%%%d\n' | sort -nr -k2 -t'(' | sed 's/no%/\n /;s/yes%/ [x]\n /'
}
list_flagged_pkgs()
{
cower -m "${1}" --format='%n %t\n' | grep --color=auto ' yes$' | cut -d\ -f1
}
Looking forward to seeing request 2 implemented in the next release
This silver ladybug at line 28...
Offline
Looking forward to seeing request 2 implemented in the next release
Done. I'd like to tag a new release soon anyways, since -git currently has proper and'ed searching. Maybe by the end of the weekend, depending on how work goes tomorrow.
Last edited by falconindy (2011-04-09 21:30:41)
Offline
It's tagtacular sunday. Hrmm.. that would have been a lot more awesome on Tuesday. Anyways, new versions of burp and cower! Mostly bug fixes and some maintenance items...
Highlights
cower 3.0.2:
Searching is now and'ed, similar to how pacman works. Results will match all provided search terms.
A small tag <!> will be displayed when operating with color to denote an out of date package (thanks lolilolicon).
Some minor bug fixes and tweaks along the way as a result of the endless stream of questionable Bash that I unearth in the AUR.
burp 1.6.3
Nothing to see here. Just a lot of refactoring of old, bad code. Fixed a couple of bugs and a crash, too.
Enjoy! As always, bug reports can be posted on Github, or you might catch me on IRC in #archlinux.
Offline
I apologize if this has been answered here, but long threads are a pain if search terms are too general.
bauerbill had the --aur-only switch was very useful in cases like cdrtools where cdrkit has cdrtools as a provides line. The options listed in the man page for cower don't seem to cover this in any convenient way. Either I'm missing something or this is a feature request.
Last edited by skottish (2011-04-15 01:17:20)
Offline
Whoa... that's fairly inconsistant on my part. 'cower -i cdrtools' will indeed show cdrtools in the AUR, but -d fails to grab it. I should be doing a direct query on the binary repos, not using a resolver.
In the meantime, you can get around this behavior by using 'cower -d cdrtools --ignorerepo extra'
Offline
Whoa... that's fairly inconsistant on my part. 'cower -i cdrtools' will indeed show cdrtools in the AUR, but -d fails to grab it. I should be doing a direct query on the binary repos, not using a resolver.
In the meantime, you can get around this behavior by using 'cower -d cdrtools --ignorerepo extra'
Thanks for the quick reply.
I saw that option and it's not a big deal to use because I know where things are coming from, but it would be cool to not have to think about it. cdrtools is one of the few AUR packages that I use that I haven't rewritten for my needs, so this is an edge case where I discover these things.
Offline
I realize now why cower behaves as it does for downloads, and it's a bit of a tricky situation. Instead, I think I'm going to change --ignorerepo to make the argument optional. If it's not specified, then all binary repos are ignored. This is only true of the command line option, and the config file option 'IgnoreRepo' remains unchanged. The command line opt will, of course, prevail over the config file.
Give me some time to test this to make sure I'm not breaking anything else in the process and I'll push it out.
edit: pushed
Last edited by falconindy (2011-04-15 12:39:32)
Offline
The curl upgrade in testing has seemed to caused some issues. I don't know enough about either to suggest where the problem lies:
~ > cower -u
error: curl: Server returned nothing (no headers, no data)
The error message is repeated.
Last edited by skottish (2011-04-20 02:23:31)
Offline
hrmmm, cannot reproduce? That's really weird -- everything is kosher here. The only release day bug in curl was curl-config not reporting version correctly, but that definitely doesn't affect us. There was no soname bump either. Can you post an strace?
Offline
Works fine here as well, perhaps connectivity issue?
Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.
Offline
Another local phantom... I'll do some research and report my findings.
Offline
hrmmm, cannot reproduce? That's really weird -- everything is kosher here. The only release day bug in curl was curl-config not reporting version correctly, but that definitely doesn't affect us. There was no soname bump either. Can you post an strace?
Whoops, of course:
Offline
falconindy wrote:hrmmm, cannot reproduce? That's really weird -- everything is kosher here. The only release day bug in curl was curl-config not reporting version correctly, but that definitely doesn't affect us. There was no soname bump either. Can you post an strace?
Whoops, of course:
Boring, since I didn't ask for strace -f (follow threads). Not sure it's going to yield anything anyways, but thanks for humoring me. If it happens again, keep something else nearby to see if maybe it's the AUR being silly, e.g.
aget () {
for pkg in "$@"; do
if curl -s "https://aur.archlinux.org/packages/$pkg/$pkg.tar.gz" | tar xz 2> /dev/null; then
echo ":: downloaded $pkg"
else
echo ":: $pkg not found"
fi
done
}
Offline
http instead of https, no?
Offline
@skottish: are you behind a proxy? Found this on the curl ML just now
https://github.com/bagder/curl/commit/c … b1358a5988
and reported on our end: https://bugs.archlinux.org/task/23863. This is definitely the cause -- I fired up squid and can recreate this. Patched curl works as expected.
Last edited by falconindy (2011-04-20 23:51:49)
Offline
@skottish: are you behind a proxy? Found this on the curl ML just now
https://github.com/bagder/curl/commit/c … b1358a5988
and reported on our end: https://bugs.archlinux.org/task/23863. This is definitely the cause -- I fired up squid and can recreate this. Patched curl works as expected.
Beautiful. If I were to find out that yet another program that I use was doomed to brokenness by the world not cooperating with proxies (privoxy here), I would be forced barf violently. You stopped my impending violent barfing. I owe you a debt of gratitude my friend.
Thanks.
Offline
Just chiming in to say that I really enjoy using cower. I often find myself editing packages from the AUR, so cower with its clear restriction to downloading from the AUR is the best tool for the job. I never liked how pacman wrappers blurred the lines between the AUR and the official repos (as you can easily fall into the trap of dismissing warnings).
Thanks for sharing!
musician & coder
http://elephly.net
http://github.com/rekado
Offline
FYI, cower 3.0.3 is in the AUR to build against yajl 2.0.0. However, there's an ugly bug in yajl that pops up when the json parser receives no input. In cower, this means when curl hits a timeout and has no response JSON. Not everyone will hit this, but I suggest lowering your thread usage (below 10) until this gets fixed upstream.
I've a bug report in upstream.
update: Bug is fixed in yajl 2.0.0-2, and I've pushed a small adjustment for cower-git as well.
Last edited by falconindy (2011-04-26 16:12:06)
Offline
When I use cower to check AUR packages for updates, I get a lot of "Couldn't resolve host name" and "Timeout was reached" messages. After troubleshooting a bit, the cause seems to be the (high?) number of threads used by cower. I tweaked the cower config to have "MaxThreads = 1" (2 works too) and the errors went away.
I suppose this is why having a user config exists, however I have to ask if the default value works for everyone else (thus the problem is at my end) or if anyone else experienced this.
Offline
I've heard this before, but not frequently enough for me to be inclined to change it. This isn't something that you encounter often; it should, realistically, be only when checking updates. cower is smart enough to use less than --threads if it doesn't need to.
Offline