| Summary: | Ark should offer a solution when some packages are not found | ||
|---|---|---|---|
| Product: | [Applications] ark | Reporter: | kono93 <kochnorman> |
| Component: | general | Assignee: | Raphael Kubo da Costa <rakuco> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | minor | CC: | elvis.angelaccio |
| Priority: | NOR | ||
| Version First Reported In: | 2.18 | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Other | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
kono93
2015-06-11 18:26:40 UTC
Such an easy script could do the job generally (at least kind of, some improvements are still needed of course).
#!/usr/bin/perl
use strict;
use warnings;
unless (qx(whereis apt-cache)) {
warn "Cannot use apt-cache\n";
exit 0;
}
my $this_program = shift;
exit 1 unless $this_program;
$this_program =~ s/[^\w\d-]//g;
my $apt_cache = qx(apt-cache search "^$this_program\$");
if($apt_cache) {
warn "$this_program found!\n";
exit 2;
}
warn "$this_program not found.\n";
exit 3;
How do you suggest to handle all the different package managers that are around? I do agree that the rar service menu should not be displayed if rar is not installed, though. In that case a novice user would just choose tar or zip and would not even notice that rar is not installed. BTW, there is already a similar report. *** This bug has been marked as a duplicate of bug 232856 *** |