summaryrefslogtreecommitdiff
path: root/classes/package_deb.bbclass
diff options
context:
space:
mode:
authorMichael Smith <msmith@cbnco.com>2009-08-17 15:14:28 -0400
committerMichael Smith <msmith@cbnco.com>2009-09-01 17:37:29 -0400
commita5c9970599cbfe15b776cbb57cb9b1b06fbdcb1c (patch)
tree4e28adeff92d62acf2d1de0b4773b55a037e9fb1 /classes/package_deb.bbclass
parentc874adcc0ab3a133207efe4dd1bd1ac71a762c46 (diff)
package_deb: create md5sums control files
These are created with the package and get installed in /var/dpkg/info. Afterward it's a great way to find modified files for backup with a little shell script magic. It feels a bit weird to still use MD5, but that seems to be the convention in the Debian world. Signed-off-by: Michael Smith <msmith@cbnco.com> Acked-by: Chris Larson <clarson@kergoth.com>
Diffstat (limited to 'classes/package_deb.bbclass')
-rw-r--r--classes/package_deb.bbclass7
1 files changed, 7 insertions, 0 deletions
diff --git a/classes/package_deb.bbclass b/classes/package_deb.bbclass
index e5339a9064..4a17010538 100644
--- a/classes/package_deb.bbclass
+++ b/classes/package_deb.bbclass
@@ -243,6 +243,13 @@ python do_package_deb () {
conffiles.write('%s\n' % f)
conffiles.close()
+ try:
+ write_package_md5sums(root, os.path.join(controldir, 'md5sums'),
+ ['DEBIAN'])
+ except:
+ bb.utils.unlockfile(lf)
+ raise
+
os.chdir(basedir)
ret = os.system("PATH=\"%s\" fakeroot dpkg-deb -b %s %s" % (bb.data.getVar("PATH", localdata, 1), root, pkgoutdir))
if ret != 0: