Codebase list debian-goodies / e2edf26
Switch from short options to long ones for eu-unstrip/eu-readelf/grep-aptavail They are more informative and understandable when reading the code. Paul Wise 6 years ago
1 changed file(s) with 4 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
109109 sub get_build_ids_from_core
110110 {
111111 my ($filename) = @_;
112 my $output = capturex(qw(eu-unstrip -n --core), $filename);
112 my $output = capturex(qw(eu-unstrip --list-only --core), $filename);
113113
114114 return parse_eu_unstrip($output);
115115 }
117117 sub get_build_ids_from_pid
118118 {
119119 my ($pid) = @_;
120 my $output = capturex(qw(eu-unstrip -n -p), $pid);
120 my $output = capturex(qw(eu-unstrip --list-only --pid), $pid);
121121 chomp $output;
122122
123123 return parse_eu_unstrip($output);
129129
130130 my $output;
131131 eval {
132 $output = capturex(qw(grep-aptavail -s Package -F Build-IDs), $id);
132 $output = capturex(qw(grep-aptavail --show-field Package --field Build-IDs), $id);
133133 };
134134 if ($@) {
135135 return;
150150 sub is_core_file
151151 {
152152 my ($filename) = (@_);
153 my $output = capturex(qw(eu-readelf -h), $filename);
153 my $output = capturex(qw(eu-readelf --file-header), $filename);
154154 if ($output =~ /^\s*Type:\s*CORE/m) {
155155 return 1;
156156 }