diff options
Diffstat (limited to 'meta/classes/distrodata.bbclass')
-rw-r--r-- | meta/classes/distrodata.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/distrodata.bbclass b/meta/classes/distrodata.bbclass index 1866f98561..e5f84d0641 100644 --- a/meta/classes/distrodata.bbclass +++ b/meta/classes/distrodata.bbclass | |||
@@ -257,8 +257,8 @@ python do_checkpkg() { | |||
257 | prefix1 = "[a-zA-Z][a-zA-Z0-9]*([\-_][a-zA-Z]\w+)*[\-_]" # match most patterns which uses "-" as separator to version digits | 257 | prefix1 = "[a-zA-Z][a-zA-Z0-9]*([\-_][a-zA-Z]\w+)*[\-_]" # match most patterns which uses "-" as separator to version digits |
258 | prefix2 = "[a-zA-Z]+" # a loose pattern such as for unzip552.tar.gz | 258 | prefix2 = "[a-zA-Z]+" # a loose pattern such as for unzip552.tar.gz |
259 | prefix = "(%s|%s)" % (prefix1, prefix2) | 259 | prefix = "(%s|%s)" % (prefix1, prefix2) |
260 | suffix = "(tar\.gz|tgz|tar\.bz2|zip)" | 260 | suffix = "(tar\.gz|tgz|tar\.bz2|zip|xz)" |
261 | suffixtuple = ("tar.gz", "tgz", "zip", "tar.bz2") | 261 | suffixtuple = ("tar.gz", "tgz", "zip", "tar.bz2", "tar.xz") |
262 | 262 | ||
263 | sinterstr = "(?P<name>%s?)(?P<ver>.*)" % prefix | 263 | sinterstr = "(?P<name>%s?)(?P<ver>.*)" % prefix |
264 | sdirstr = "(?P<name>%s)(?P<ver>.*)\.(?P<type>%s$)" % (prefix, suffix) | 264 | sdirstr = "(?P<name>%s)(?P<ver>.*)\.(?P<type>%s$)" % (prefix, suffix) |