From e66b9e2cd7f62165ba8331558d987ec568d073cd Mon Sep 17 00:00:00 2001 From: fake Date: Tue, 14 Sep 2004 08:53:48 +0000 Subject: [PATCH] fake: import/cpan: head -n useage, dont run configure scripts in cpan mods with bash [2004091402153825187] (https://www.rocklinux.net/submaster) git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@4221 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- package/import/cpan/cpan.conf | 1 + package/import/cpan/getdesc.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package/import/cpan/cpan.conf b/package/import/cpan/cpan.conf index 0399b1d3b..72bc0bad2 100644 --- a/package/import/cpan/cpan.conf +++ b/package/import/cpan/cpan.conf @@ -21,6 +21,7 @@ # --- ROCK-COPYRIGHT-NOTE-END --- cpanmod="" +configexec="" # see if this is a hosted package . $confdir/hosted_cpan.sel diff --git a/package/import/cpan/getdesc.sh b/package/import/cpan/getdesc.sh index 3379d3b0c..ebd7b7d13 100644 --- a/package/import/cpan/getdesc.sh +++ b/package/import/cpan/getdesc.sh @@ -29,7 +29,7 @@ get_pm_desc() } { - get_pm_desc NAME | perl -pe 's,^.*?- *,[I] ,' | head -1 + get_pm_desc NAME | perl -pe 's,^.*?- *,[I] ,' | head -n 1 get_pm_desc DESCRIPTION | fmt | perl -pe 's,^,[T] ,' get_pm_desc AUTHORS | perl -pe 's,^,[A] ,' } | perl -pe 's///>/ig;'