summaryrefslogtreecommitdiff
path: root/meta/classes/distrodata.bbclass
diff options
context:
space:
mode:
authorEmilia Ciobanu <emilia.maria.silvia.ciobanu@intel.com>2013-07-26 18:58:18 +0300
committerSaul Wold <sgw@linux.intel.com>2013-07-30 07:25:40 -0700
commit2275dd9507fa7b8c3e62ffcf8b9b16120f16fe8f (patch)
tree81494992464016791e69dbb191aeed019abb96f2 /meta/classes/distrodata.bbclass
parent22548b3243dfa2dc9861b0f15530632b37812a8c (diff)
downloadopenembedded-core-2275dd9507fa7b8c3e62ffcf8b9b16120f16fe8f.tar.gz
openembedded-core-2275dd9507fa7b8c3e62ffcf8b9b16120f16fe8f.tar.bz2
openembedded-core-2275dd9507fa7b8c3e62ffcf8b9b16120f16fe8f.zip
distrodata.bbclass: Remove whitespaces
Signed-off-by: Emilia Ciobanu <emilia.maria.silvia.ciobanu@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/classes/distrodata.bbclass')
-rw-r--r--meta/classes/distrodata.bbclass18
1 files changed, 9 insertions, 9 deletions
diff --git a/meta/classes/distrodata.bbclass b/meta/classes/distrodata.bbclass
index 204612c378..1774dc035d 100644
--- a/meta/classes/distrodata.bbclass
+++ b/meta/classes/distrodata.bbclass
@@ -71,7 +71,7 @@ python do_distrodata_np() {
rstatus = localdata.getVar('RECIPE_COLOR', True)
if rstatus is not None:
rstatus = rstatus.replace(',','')
-
+
pupver = localdata.getVar('RECIPE_UPSTREAM_VERSION', True)
if pcurver == pupver:
vermatch="1"
@@ -157,7 +157,7 @@ python do_distrodata() {
rstatus = localdata.getVar('RECIPE_COLOR', True)
if rstatus is not None:
rstatus = rstatus.replace(',','')
-
+
pupver = localdata.getVar('RECIPE_UPSTREAM_VERSION', True)
if pcurver == pupver:
vermatch="1"
@@ -408,7 +408,7 @@ python do_checkpkg() {
s = "%s[^\d\"]*?(\d+[\.\-_])+\d+/?" % m.group()
else:
s = "(\d+[\.\-_])+\d+/?"
-
+
searchstr = "[hH][rR][eE][fF]=\"%s\">" % s
reg = re.compile(searchstr)
@@ -599,17 +599,17 @@ python do_checkpkg() {
altpath = path
dirver = "-"
curname = "-"
-
+
"""
match version number amid the path, such as "5.7" in:
- http://download.gnome.org/sources/${PN}/5.7/${PN}-${PV}.tar.gz
+ http://download.gnome.org/sources/${PN}/5.7/${PN}-${PV}.tar.gz
N.B. how about sth. like "../5.7/5.8/..."? Not find such example so far :-P
"""
m = re.search(r"[^/]*(\d+\.)+\d+([\-_]r\d+)*/", path)
if m:
altpath = path.split(m.group())[0]
dirver = m.group().strip("/")
-
+
"""use new path and remove param. for wget only param is md5sum"""
alturi = bb.encodeurl([type, host, altpath, user, pswd, {}])
my_uri = d.getVar('REGEX_URI', True)
@@ -624,7 +624,7 @@ python do_checkpkg() {
"""Now try to acquire all remote files in current directory"""
if not re.match("Err", newver):
curname = altpath.split("/")[-1]
-
+
"""get remote name by skipping pacakge name"""
m = re.search(r"/.*/", altpath)
if not m:
@@ -650,7 +650,7 @@ python do_checkpkg() {
pstatus = "UPDATE"
else:
pstatus = "MATCH"
-
+
if re.match("Err", newver):
pstatus = newver + ":" + altpath + ":" + dirver + ":" + curname
elif type == 'git':
@@ -796,7 +796,7 @@ python do_checkpkg() {
pmstatus = "MATCH"
else:
pmstatus = "UPDATE"
-
+
psrcuri = psrcuri.split()[0]
pdepends = "".join(pdepends.split("\t"))
pdesc = "".join(pdesc.split("\t"))