Jan Vroonhof <vroonhof(a)math.ethz.ch> writes:
Enrico Scholz <enrico.scholz(a)wirtschaft.tu-chemnitz.de>
writes:
> I think the error is in package-get.el:316.
> There should be
>
> (unless (and no-remote (not (caar entries)))
>
> instead of
>
> (unless (and no-remote (caar entries))
No the logic is correct.
It's possible I've misunderstood some things, but I think:
no-remote - nil -> remote connections allowed
t -> no remote connections allowed
caar entries - nil -> local path
other -> remote path
The unless body should be executed only if remote connections are
allowed and it's a remote path, right?
This gives the table (I am using "(if (and (not no-remote) (caar
entries))" from my other posting):
no-remote caar entries your (unless ... my (if ...
------------------------------------------------------------------
nil nil yes no
nil other yes yes
t nil yes no
t other no no
The "(unless...)" allows to enter the body if remote connections are
allowed but it's a local path.
So I think my "(if ...)" is correct.
It is just that package-get-remote-file-name cannot handle local
filenames, which it should. How on earth could this bug have been
left dormant so long?
I guess installing a local package will not be happen very often. Most
people will use either efs (broken on WinNT) or have installed the
packages already.
Enrico
--
eMail: enrico.scholz(a)wirtschaft.tu-chemnitz.de
talk: ensc(a)ultra.csn.tu-chemnitz.de