Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 177608 Details for
Bug 231331
FreeHEP libraries
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
depscan.pl
depscan.pl (text/plain), 1.22 KB, created by
Andrey Kislyuk (RETIRED)
on 2009-01-06 22:38:07 UTC
(
hide
)
Description:
depscan.pl
Filename:
MIME Type:
Creator:
Andrey Kislyuk (RETIRED)
Created:
2009-01-06 22:38:07 UTC
Size:
1.22 KB
patch
obsolete
>#!/usr/bin/perl >use strict; >use File::Path; >use XML::Parser; > >my $pdir = "."; >my $repo = "http://java.freehep.org/maven2"; >my $group_id = "org.freehep"; >$group_id =~ s/\./\//; > >opendir(DIR, $pdir); >my @l = readdir(DIR); >closedir DIR; > >my %deps; >foreach my $pkg (@l) { > next unless $pkg =~ /freehep/; ># my @df = glob "/usr/portage/distfiles/$pkg*"; my $distfile = $df[0]; > my @ebuilds = glob "$pdir/$pkg/*.ebuild"; > my $ebuild = $ebuilds[$#ebuilds]; $ebuild =~ /-([\d\.]+).ebuild/ or die; # bad version parsing > my $version = $1; > my $xml = `wget -q -O - $repo/$group_id/$pkg/$version/$pkg-$version.pom`; > my $parser = new XML::Parser(Style=>'Tree'); > my $tree = $parser->parse($xml); > foreach my $i (0..$#{$tree->[1]}) { > next if $tree->[1]->[$i] ne 'dependencies'; > my @deps = @{$tree->[1]->[$i+1]}; > foreach my $j (0..$#deps) { > next if $deps[$j] ne 'dependency'; > my @dep = @{$deps[$j+1]}; > my %dep_info; > foreach my $k (0..$#dep) { > next if $dep[$k] !~ /groupId|artifactId|version/; > my $value = $dep[$k+1]->[2]; > $dep_info{$dep[$k]} = $value; > } > push(@{$deps{$pkg}}, \%dep_info); > } > } > > print "$pkg-$version:\n"; > foreach my $dep (@{$deps{$pkg}}) { > print "\t$$dep{groupId}\t$$dep{artifactId}\t$$dep{version}\n"; > } >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 231331
:
177542
|
177543
|
177545
|
177547
|
177608
|
177610
|
177912
|
177913
|
177972