X-Git-Url: http://git.pld-linux.org/?p=packages%2Feventum.git;a=blobdiff_plain;f=update-source.sh;fp=update-source.sh;h=52eecbb698fd56c2b30aa0e04a0bd59ece269d7c;hp=c006f34a5a270eb5056d6c1dcbefa51fed3f74d8;hb=acd00494b4a4d87bb93d57dabbfb97508af34b92;hpb=d1d4f499ee4eadaa0eb81216a99e7d70262a4330 diff --git a/update-source.sh b/update-source.sh index c006f34..52eecbb 100755 --- a/update-source.sh +++ b/update-source.sh @@ -45,6 +45,8 @@ echo "Updating $specfile for $rev (subver: $subver, githash: $githash)..." sed -i -re " s/^[#%](define[ \t]+subver[ \t]+)[0-9]+\$/%\1$subver/ s/^[#%](define[ \t]+githash[ \t]+)[0-9a-fg]+\$/%\1$githash/ + /^Source0:.*download\/v/ s/^/#/ + /^#Source0:.*download\/snapshot/ s/^#// " $specfile ../builder -ncs -5 $specfile