# HG changeset patch
# User Kim Alvefur <zash@zash.se>
# Date 1367084677 -7200
# Node ID d83482fc4a81de265b8368c37a4407eb18f3d676
# Parent  af58eea131b4bca72f68184894b601b09e413b95
moduleapi: in module:provides(), add the name of the module in item._provided_by

diff -r af58eea131b4 -r d83482fc4a81 core/moduleapi.lua
--- a/core/moduleapi.lua	Sat Apr 27 19:14:22 2013 +0200
+++ b/core/moduleapi.lua	Sat Apr 27 19:44:37 2013 +0200
@@ -335,6 +335,7 @@
 		end
 		item.name = item_name;
 	end
+	item._provided_by = self.name;
 	self:add_item(name.."-provider", item);
 end