Re: NIS support in APT
On Sat, 28 Oct 2000, Livio Baldini Soares wrote:
> Adam Heath writes:
> > On Sat, 28 Oct 2000, Livio Baldini Soares wrote:
> >
> > > So if anybody's interested just e-mail me back at
> > > livio@linux.ime.usp.br, or if I sent this to the wrong place, please
> > > indicate me the right e-mail to contact APT development team.
> >
> > Send it here. I once did this as well, but never sent in a patch, altho Jason
> > knew that I had done it.
>
> Ok, here it goes.
>
> About the NIS map you should create, I couldn't find a clean
> method... Look at an example of a map like `sources.list`:
>
> deb file:/bla/ble bli blo
> deb file:/ha/he hi ho
> ^^^
> Here there's a problem cause DBM's (NIS compiled internal files)
> woun't let you have two keys that are equal (deb == deb), so everyone
> execept the last will be overwritten. What I did (which is a VERY BACD
> solution, but the only I could think of), was to make the map like
> this:
>
> rule1 deb file:/bla/ble bli blo
> rule2 deb file:/ha/he hi ho
> ^^^^
What I did, was combine all like keyed lines into one, so you could use the
dbm keyed lookup. I then used a separator char, and split this in the apt
client.
I'll see if I can find my patch.
----BEGIN GEEK CODE BLOCK----
Version: 3.12
GCS d- s: a-- c+++ UL++++ P+ L++++ !E W+ M o+ K- W--- !O M- !V PS--
PE++ Y+ PGP++ t* 5++ X+ tv b+ D++ G e h*! !r z?
-----END GEEK CODE BLOCK-----
----BEGIN PGP INFO----
Adam Heath <doogie@debian.org> Finger Print | KeyID
67 01 42 93 CA 37 FB 1E 63 C9 80 1D 08 CF 84 0A | DE656B05 PGP
AD46 C888 F587 F8A3 A6DA 3261 8A2C 7DC2 8BD4 A489 | 8BD4A489 GPG
-----END PGP INFO-----
Reply to: