On Thu, Apr 29, 2010 at 5:11 PM, Russ Allbery <r...@debian.org> wrote: > Ignacio Valdes <ival...@hal-pc.org> writes: >> On Thu, Apr 29, 2010 at 3:55 PM, Russ Allbery <r...@debian.org> wrote: >>> Ignacio Valdes <ival...@hal-pc.org> writes: > >>>> So what is the usual method of accessing control file values such as >>>> Package: in postinst? > >>> Generally, you don't, since generally there's no reason to do so. I >>> can't say I've ever had any reason to want to do that in any of the >>> Debian packages I maintain. > >> Introspection isn't a particularly exotic function. > > This discussion is missing a motivating application. The glimmers that > I've gotten from your original discussion seemed to me like a basically > incorrect design, leading to needing features that wouldn't be required by > a better design. But I can't tell for sure since I'm not sure what you're > really trying to do. > > As a general rule of thumb, if you're writing complex postinst code, > you're doing something wrong. There are exceptions, but not a lot of > them, and mostly for very complex packages. >
It is a very complex, large package. Does anyone know the mechanics of doing introspection in postinst for the control file defined variables? -- IV -- To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/m2v311679a81004291618y719cfd0bxafca92e4e3d46...@mail.gmail.com