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

Re: hardlinks in packages -- unusable in AFS



On Sun, 20 Oct 2002, Joerg Sommer wrote:

> ?-) I am confused? I replace /bin/tar for a test with a shell script to
> see, how dpkg calls tar and then run apt-get install foo and I saw, that
> /bin/tar was called with 'xf -'. Yesterday I looked at the source code of
> dpkg and I found in dpkg-deb/extract.c these lines:
>
> #v+
> void extracthalf(const char *debar, const char *directory,
>                  const char *taroption, int admininfo) {
> [...]
> 	execlp(TAR,"tar",buffer,"-",(char*)0);
> [...]
> }
>
> void do_extract(const char *const *argv) { controlextractvextract(0, "xp", argv)
> #v-
>
> do_extract() calls controlextractvextract() and this calls extracthalf().
> The name do_extract implies, that this function is used for extraction,
> but I'm not sure.

For installs, dpkg uses it's internal tar.  However, when dpkg-deb -x is
called, then the external tar is used.

Installation of a package occurs when dpkg -i or dpkg --unpack is called.



Reply to: