[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Installing package *NOT* in repository



On Tue, Aug 21, 2018 at 09:33:31AM -0400, Greg Wooledge wrote:
Y'know what, I'm getting sick of apt having this feature and not
documenting it anywhere.  So I decided to do an "apt-get source apt"
and try to find it in the freakin' code.

The relevant test is:

     if (I != nullptr && (I[0] == '/' || (I[0] == '.' && (I[1] == '\0' || (I[1] == '.' && (I[2] == '\0' || I[2] == '/')) || I[1] == '/'))))

So, basically, if the argument starts with / or ./ or ../ (or if the argument is . or ..) it's processed directly.

Mike Stone


Reply to: