summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2012-08-02 10:23:03 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-08-06 15:29:45 +0100
commit78d8faf4e16400f9f89c39917f14c03a49a09dcc (patch)
tree572131cafd08c09d31fd4f580ea6ca162469aae6 /meta
parentd0b07eb77891037fe229f3ed488e3d0c8f0fd219 (diff)
downloadast2050-yocto-poky-78d8faf4e16400f9f89c39917f14c03a49a09dcc.zip
ast2050-yocto-poky-78d8faf4e16400f9f89c39917f14c03a49a09dcc.tar.gz
classes/buildhistory: remove unused functions
getlastrecipeversion and readRecipeInfo weren't called anywhere. Remove them so we don't have to keep them up-to-date with future additions to the recipe info file. (From OE-Core rev: 22bf6284576ccee607d7bd197420a29242df11c0) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/buildhistory.bbclass29
1 files changed, 0 insertions, 29 deletions
diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass
index c3555da..510a6df 100644
--- a/meta/classes/buildhistory.bbclass
+++ b/meta/classes/buildhistory.bbclass
@@ -68,28 +68,6 @@ python buildhistory_emit_pkghistory() {
return val
- def readRecipeInfo(pn, histfile):
- rcpinfo = RecipeInfo(pn)
- f = open(histfile, "r")
- try:
- for line in f:
- lns = line.split('=')
- name = lns[0].strip()
- value = lns[1].strip(" \t\r\n").strip('"')
- if name == "PE":
- rcpinfo.pe = value
- elif name == "PV":
- rcpinfo.pv = value
- elif name == "PR":
- rcpinfo.pr = value
- elif name == "DEPENDS":
- rcpinfo.depends = value
- elif name == "PACKAGES":
- rcpinfo.packages = value
- finally:
- f.close()
- return rcpinfo
-
def readPackageInfo(pkg, histfile):
pkginfo = PackageInfo(pkg)
f = open(histfile, "r")
@@ -118,13 +96,6 @@ python buildhistory_emit_pkghistory() {
f.close()
return pkginfo
- def getlastrecipeversion(pn):
- try:
- histfile = os.path.join(pkghistdir, "latest")
- return readRecipeInfo(pn, histfile)
- except EnvironmentError:
- return None
-
def getlastpkgversion(pkg):
try:
histfile = os.path.join(pkghistdir, pkg, "latest")
OpenPOWER on IntegriCloud