Re: :action depend for D
Bram Moolenaar <[email protected]>
| Newsgroups | gmane.comp.tools.aap.devel |
|---|---|
| Message-ID | <[email protected]> |
Lars Ivar Igesund wrote: > > > > Now, there is one remaining problem: Aap may be installed on the > > > > system and the directories are not writable by a normal user. > > > > The best solution I can think of is to offer the user a choice: > > > > > > > > - become root and install ddepcheck globally (using :asroot) > > > > - install for the current user only (in $HOME/bin) > > > > - quit > > > > > > Hmm, sounds ok. Should I do this or are you onto it? > > Ok, the d.diff patch do something like this and it works (on Windows). > I'm not sure what I should use when installing globally (so I didn't) and > why should I use $HOME instead of aapdir/bin? In both cases I have > used aapdir/bin, just using :asroot if necessary. Please modify as > needed (so I can learn from my mistakes :) I didn't try it, but it looks like it should work OK if the user can become root when necessary. But it won't work for an ordinary user. I'm not sure how to solve this. We should offer the choice whether the user wants to become root and install globally, or install in his home directory only. But that last option is something new, I don't know what directory to use then. ~/bin would be obvious, but not everybody has that in $PATH. Another solution would be to install Aap for the user, so that he can write in the Aap directories. But that sounds like a clumsy solution... > Also, a patch for a modified ddepcheck is included (at least one > serious bug was fixed (deep recursion stuff), and a couple of > buglets). It's been "optimized" too (actually it was the deep > recursion fix), and it don't slow down for deep import trees. > Interestingly (or strangely), cvs diff -/+ all of the code, so the patch > is bigger than the actual source :) Looks like some trouble with line endings. My patch program didn't complain, thus I included this patch without trouble. > And a minor doc patch (I feel that I understand 'commit' better than > 'commot'). I'll include that as well. Thanks! -- hundred-and-one symptoms of being an internet addict: 1. You actually wore a blue ribbon to protest the Communications Decency Act. /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ /// Creator of Vim - Vi IMproved -- http://www.Vim.org \\\ \\\ Project leader for A-A-P -- http://www.A-A-P.org /// \\\ Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html /// ------------------------------------------------------- This SF.Net email sponsored by: ApacheCon 2003, 16-19 November in Las Vegas. Learn firsthand the latest developments in Apache, PHP, Perl, XML, Java, MySQL, WebDAV, and more! http://www.apachecon.com/