diff options
Diffstat (limited to 'meta/classes/buildhistory.bbclass')
-rw-r--r-- | meta/classes/buildhistory.bbclass | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass index c3555dacbc..510a6df85a 100644 --- a/meta/classes/buildhistory.bbclass +++ b/meta/classes/buildhistory.bbclass | |||
@@ -68,28 +68,6 @@ python buildhistory_emit_pkghistory() { | |||
68 | 68 | ||
69 | return val | 69 | return val |
70 | 70 | ||
71 | def readRecipeInfo(pn, histfile): | ||
72 | rcpinfo = RecipeInfo(pn) | ||
73 | f = open(histfile, "r") | ||
74 | try: | ||
75 | for line in f: | ||
76 | lns = line.split('=') | ||
77 | name = lns[0].strip() | ||
78 | value = lns[1].strip(" \t\r\n").strip('"') | ||
79 | if name == "PE": | ||
80 | rcpinfo.pe = value | ||
81 | elif name == "PV": | ||
82 | rcpinfo.pv = value | ||
83 | elif name == "PR": | ||
84 | rcpinfo.pr = value | ||
85 | elif name == "DEPENDS": | ||
86 | rcpinfo.depends = value | ||
87 | elif name == "PACKAGES": | ||
88 | rcpinfo.packages = value | ||
89 | finally: | ||
90 | f.close() | ||
91 | return rcpinfo | ||
92 | |||
93 | def readPackageInfo(pkg, histfile): | 71 | def readPackageInfo(pkg, histfile): |
94 | pkginfo = PackageInfo(pkg) | 72 | pkginfo = PackageInfo(pkg) |
95 | f = open(histfile, "r") | 73 | f = open(histfile, "r") |
@@ -118,13 +96,6 @@ python buildhistory_emit_pkghistory() { | |||
118 | f.close() | 96 | f.close() |
119 | return pkginfo | 97 | return pkginfo |
120 | 98 | ||
121 | def getlastrecipeversion(pn): | ||
122 | try: | ||
123 | histfile = os.path.join(pkghistdir, "latest") | ||
124 | return readRecipeInfo(pn, histfile) | ||
125 | except EnvironmentError: | ||
126 | return None | ||
127 | |||
128 | def getlastpkgversion(pkg): | 99 | def getlastpkgversion(pkg): |
129 | try: | 100 | try: |
130 | histfile = os.path.join(pkghistdir, pkg, "latest") | 101 | histfile = os.path.join(pkghistdir, pkg, "latest") |