commit 008e5872458982f0c0bd28f1e7dd78e6a27e3c01
Author: Arkadiusz MiĆkiewicz <[email protected]>
Date: Wed Mar 25 10:25:01 2015 +0100
Better way to work with github links (like /path/0.1.2.tar.gz) eg
psi-plus.spec
pldnotify.awk | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/pldnotify.awk b/pldnotify.awk
index 7d1f86e..2915277 100755
--- a/pldnotify.awk
+++ b/pldnotify.awk
@@ -586,11 +586,11 @@ function process_source(number, lurl, name, version) {
d("Found link: " addr)
- # github has very different tarball links that clash
with this safe check
- if (!(newurl
~/^(http|https):\/\/github.com\/.*\/tarball/)) {
- if (addr ~ "[-_.0-9A-Za-z~]" filenameexp) {
- continue
- }
+ # Try not to treat foobar or foo-bar as (possibly
newer) version of bar
+ # (practical cases: KXL, lineakconfig, mhash...)
+ # but don't skip cases where name is like
"/some/link/0.12.2.tar.gz"
+ if ((addr ~ "[-_.0-9A-Za-z~]" filenameexp) && addr !~
"[-_.0-9A-Za-z~]/" filenameexp) {
+ continue
}
if (addr ~ filenameexp) {
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/rpm-build-tools.git/commitdiff/008e5872458982f0c0bd28f1e7dd78e6a27e3c01
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit