Re: FreeBSD-Apt
Paul Seelig wrote:
> fbsd-apt obviously is *not* a port of Debian's apt but a newly created
> program instead which is intented to work just like Debian apt. This
> snippet is from "fbsd-apt-0.1/README":
>
> -------------------- snip -------------------
> ABOUT: fbsd-apt is based on how apt works for debian.
> but basicaly it is just a front end of pkg_*. If you know anything
> about apt-get on debian , you will love fbsd-apt.
> -------------------- snip -------------------
This is pretty hilarious.
Whoever wrote this really doesn't know much about apt. A copy of a
command line UI does not a reimplementation make.
if ($action eq 'remove') {
...
$epackages = `ls /var/db/pkg`;
if ($epackages =~ m/(\Q$filename\E.*)/) {
print "Found matching package: ", $1, "\n";
$pkg = $1;
}
...
while ($yn3 ne 'y') {
print "\nIs this the package you want to delete: ", $pkg, "? [y/n]: ";
chomp ($yn3 = <STDIN>);
$yn3 = lc $yn3;
if ($yn3 eq 'n') {
die "\nAboring...\nIf the package didn't match, please be more specific.\n";
}
}
print "Removing package ", $pkg, "...\n";
exec "pkg_delete $pkg";
Anyway, Jason should be proud: imitation, flattery, and all that.
--
see shy jo
Reply to: