Re: HOWTO: Source a common shell script between DEBIAN/config and DEBIAN/preinst

2011-01-18 Thread Roland Mas
harish badrinath, 2011-01-18 13:00:03 +0530 : > I want to source a common file between these two scripts You can't be sure that the common file is present on the system when config runs (since that may be before the package is unpacked). You can, however, maintain the common part as a separat

Re: HOWTO: Source a common shell script between DEBIAN/config and DEBIAN/preinst

2011-01-18 Thread harish badrinath
On Tue, Jan 18, 2011 at 1:26 PM, Thomas Goirand wrote: > On 01/18/2011 03:13 PM, harish badrinath wrote: >> Given that i was told that you can deterministically determine which >> file would run first DEBIAN/control _or_ DEBIAN/preinst, I have this >> following query. Sorry i was told that you *ca

Re: HOWTO: Source a common shell script between DEBIAN/config and DEBIAN/preinst

2011-01-18 Thread Thomas Goirand
On 01/18/2011 03:13 PM, harish badrinath wrote: > Given that i was told that you can deterministically determine which > file would run first DEBIAN/control _or_ DEBIAN/preinst, I have this > following query. > > I want to source a common file between these two scripts to ensure > that if the pack

Re: HOWTO: Source a common shell script between DEBIAN/config and DEBIAN/preinst

2011-01-17 Thread Raphael Hertzog
Hi, your questions are probably better answered on debian-mentors@lists.debian.org. On Tue, 18 Jan 2011, harish badrinath wrote: > Given that i was told that you can deterministically determine which > file would run first DEBIAN/control _or_ DEBIAN/preinst, I have this > following query. You me

HOWTO: Source a common shell script between DEBIAN/config and DEBIAN/preinst

2011-01-17 Thread harish badrinath
Given that i was told that you can deterministically determine which file would run first DEBIAN/control _or_ DEBIAN/preinst, I have this following query. I want to source a common file between these two scripts to ensure that if the package cant automatically detect sane values, it prompt the us