summaryrefslogtreecommitdiffstats
path: root/perl-install/pkgs.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/pkgs.pm')
-rw-r--r--perl-install/pkgs.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/pkgs.pm b/perl-install/pkgs.pm
index 4acc279f8..4aa8edb4d 100644
--- a/perl-install/pkgs.pm
+++ b/perl-install/pkgs.pm
@@ -487,8 +487,8 @@ sub readCompss {
/^\s*$/ || /^#/ and next;
s/#.*//;
- if (/^(\S+)/) {
- $p = $1 if /^(\S+)/;
+ if (/^(\S.*)/) {
+ $p = $1;
} else {
/(\S+)/;
$packages->[0]{$1} or log::l("unknown package $1 in compss"), next;