[libmodule-install-doap-perl] 10/34: hyphenated-properties
Jonas Smedegaard
js at alioth.debian.org
Thu Aug 8 16:13:47 UTC 2013
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository libmodule-install-doap-perl.
commit 666baf592605c47f860338a4b428d1b2602b1f26
Author: Toby Inkster <mail at tobyinkster.co.uk>
Date: Tue Jul 30 20:40:10 2013 +0100
hyphenated-properties
--HG--
branch : Module-Install-DOAP
---
lib/Module/Install/Admin/DOAP.pm | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/lib/Module/Install/Admin/DOAP.pm b/lib/Module/Install/Admin/DOAP.pm
index 89dfd26..5c87b0d 100644
--- a/lib/Module/Install/Admin/DOAP.pm
+++ b/lib/Module/Install/Admin/DOAP.pm
@@ -215,18 +215,18 @@ sub doap_metadata
{
foreach my $level (qw/ requirement recommendation suggestion /)
{
- my $term = "$phase\_$level";
+ my $term = "${phase}-${level}";
my $mi_term = {
- configure_requirement => 'configure_requires',
- build_requirement => 'build_requires',
- test_requirement => 'test_requires',
- runtime_requirement => 'requires',
- build_recommendation => 'recommends',
- test_recommendation => 'recommends',
- runtime_recommendation => 'recommends',
+ 'configure-requirement' => 'configure_requires',
+ 'build-requirement' => 'build_requires',
+ 'test-requirement' => 'test_requires',
+ 'runtime-requirement' => 'requires',
+ 'build-recommendation' => 'recommends',
+ 'test-recommendation' => 'recommends',
+ 'runtime-recommendation' => 'recommends',
}->{$term} or next;
- foreach my $dep ( $model->objects($uri, $DEPS->$term) )
+ foreach my $dep ( $model->objects($uri, $DEPS->uri($term)) )
{
if ($dep->is_literal)
{
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libmodule-install-doap-perl.git
More information about the Pkg-perl-cvs-commits
mailing list