Skip to content

Commit

Permalink
fixed dependencies content parsing regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
xaicron committed Nov 21, 2010
1 parent 6f7093e commit 27e0cbd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/pm-uninstall
Expand Up @@ -108,8 +108,9 @@ sub ask_permission {
if ($opt->{check_deps}) {
$vname = vname_for($module);
warn "Checking modules depending on $vname\n" if $opt->{verbose};
warn "-> Getting from $base_url$vname\n" if $opt->{verbose};
my $content = get("$base_url$vname");
for my $dep ($content =~ m|<li>([a-zA-Z0-9_::]+)|smg) {
for my $dep ($content =~ m|<li>([a-zA-Z0-9_:-]+)|smg) {
$dep =~ s/^\s+|\s+$//smg;
$dep =~ s/\-[^\-]+$//; # version
next if $seen{$dep}++;
Expand Down

0 comments on commit 27e0cbd

Please sign in to comment.