summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorSaul Wold <sgw@linux.intel.com>2011-01-20 15:10:54 -0800
committerSaul Wold <sgw@linux.intel.com>2011-01-20 16:56:04 -0800
commit7d9a8fc931966012a9ddd50e607c6de1d94fe394 (patch)
tree5ff8967bde6868edc86a4efd3351c73d4a35daf6 /meta
parent20925a6c4082f5a70b342cf82c19df42f5dd2b2c (diff)
downloadpoky-7d9a8fc931966012a9ddd50e607c6de1d94fe394.tar.gz
distrodata.bbclass: add .xz file type
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/distrodata.bbclass4
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)