+2007-11-04 Guillem Jover <guillem@debian.org>
+
+ * scripts/Dpkg/Arch.pm (get_valid_arches): Return an array instead of
+ printing the architectures.
+
2007-10-18 Raphael Hertzog <hertzog@debian.org>
* scripts/Dpkg/Deps.pm: new module to handle dependencies, to
read_cputable() if (!@cpu);
read_ostable() if (!@os);
+ my @arches;
+
foreach my $os (@os) {
foreach my $cpu (@cpu) {
my $arch = debtriplet_to_debarch(split(/-/, $os, 2), $cpu);
- print $arch."\n" if defined($arch);
+ push @arches, $arch if defined($arch);
}
}
+
+ return @arches;
}
sub read_cputable