Skip to contentSkip to conversation

unifdef: add UPSTREAM_CHECK_REGEX to filter out development snapshots

PATCH New Ross Burton 1 participant 1 message Feb 20, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 unifdef: add UPSTREAM_CHECK_REGEX to filter out development snapshots

Upstream is releasing development snapshots of the form unifdef-2.11.23.1cca442.tar.gz so filter out versions which end is something that looks like a git SHA.

---
 meta/recipes-devtools/unifdef/unifdef_2.11.bb | 2 ++
 1 file changed, 2 insertions(+)
meta/recipes-devtools/unifdef/unifdef_2.11.bb +2 -0
index 1d13b9a..1ffc11e 100644
@@ -10,6 +10,8 @@ SRC_URI = "http://dotat.at/prog/${BPN}/${BP}.tar.xz"
 SRC_URI[md5sum] = "337053fd8a7d9ab3adf5e50f88af95b7"
 SRC_URI[sha256sum] = "828ffc270ac262b88fe011136acef2780c05b0dc3c5435d005651740788d4537"
 
+UPSTREAM_CHECK_REGEX = "unifdef-(?P<pver>((\d+\.*)+)(?![a-f0-9]{6,})).tar"
+
 do_install() {
 	oe_runmake install DESTDIR=${D} prefix=${prefix}
 }
Signature · 1 line
2.8.1