summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/package_ipk.bbclass7
1 files changed, 3 insertions, 4 deletions
diff --git a/meta/classes/package_ipk.bbclass b/meta/classes/package_ipk.bbclass
index c7cec9d..a1e51ee 100644
--- a/meta/classes/package_ipk.bbclass
+++ b/meta/classes/package_ipk.bbclass
@@ -48,6 +48,8 @@ python do_package_ipk () {
48 if os.path.exists(p): 48 if os.path.exists(p):
49 bb.utils.prunedir(p) 49 bb.utils.prunedir(p)
50 50
51 recipesource = os.path.basename(d.getVar('FILE'))
52
51 for pkg in packages.split(): 53 for pkg in packages.split():
52 localdata = bb.data.createCopy(d) 54 localdata = bb.data.createCopy(d)
53 root = "%s/%s" % (pkgdest, pkg) 55 root = "%s/%s" % (pkgdest, pkg)
@@ -204,10 +206,7 @@ python do_package_ipk () {
204 ctrlfile.write("Replaces: %s\n" % bb.utils.join_deps(rreplaces)) 206 ctrlfile.write("Replaces: %s\n" % bb.utils.join_deps(rreplaces))
205 if rconflicts: 207 if rconflicts:
206 ctrlfile.write("Conflicts: %s\n" % bb.utils.join_deps(rconflicts)) 208 ctrlfile.write("Conflicts: %s\n" % bb.utils.join_deps(rconflicts))
207 src_uri = localdata.getVar("SRC_URI").strip() or "None" 209 ctrlfile.write("Source: %s\n" % recipesource)
208 if src_uri:
209 src_uri = re.sub("\s+", " ", src_uri)
210 ctrlfile.write("Source: %s\n" % " ".join(src_uri.split()))
211 ctrlfile.close() 210 ctrlfile.close()
212 211
213 for script in ["preinst", "postinst", "prerm", "postrm"]: 212 for script in ["preinst", "postinst", "prerm", "postrm"]: