]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- bitbucket.org support
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Wed, 15 May 2013 08:20:14 +0000 (10:20 +0200)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Wed, 15 May 2013 08:22:19 +0000 (10:22 +0200)
pldnotify.awk

index 1f403c678b5e7b5fa649cfa69810086be38fe7c9..b21c31d8c2963c98cf8039cc37132d1f6df8e76f 100755 (executable)
@@ -283,6 +283,12 @@ function get_links(url,filename,   errno,link,oneline,retval,odp,wholeodp,lowero
                d("github archive url, mungled url to: " url)
        }
 
+       # https://bitbucket.org/logilab/pylint/get/tip.tar.bz2 -> https://bitbucket.org/logilab/pylint/downloads
+       if (url ~/^(http|https):\/\/bitbucket.org\/.*\/get\/.*/) {
+               gsub("\/get\/.*", "/downloads", url)
+               d("github bitbucket url, mungled url to: " url)
+       }
+
        if (url ~/^(http|https):\/\/cgit\..*\/(.*)\/snapshot\//) {
                gsub("\/snapshot\/.*", "/", url)
                d("cgit snapshot tarball url, mungled url to: " url)
This page took 0.048217 seconds and 4 git commands to generate.