On Thu, Nov 10, 2005 at 11:42:41PM +0100, Marc Leeman wrote:
> > > /var/cache/install/$PACKAGE?
> > Why not /var/cache/$package/
> > maybe /v/c/$package/install/
> 
> OK, I took the last one:
> 
> [EMAIL PROTECTED] sources]$ ls -al /var/cache/quake3-data/install/
> total 78336
> drwxr-xr-x  2 root root       16 2005-11-10 23:33 .
> drwxr-xr-x  3 root root       16 2005-11-10 23:32 ..
> -rw-r--r--  1 root root 49289300 2005-11-06 10:47 
> linuxq3ademo-1.11-6.x86.gz.sh
> -rw-r--r--  1 root root 30923961 2005-11-06 21:15 
> linuxq3apoint-1.32b-3.x86.run
> 
> When purging the package
> 
> [EMAIL PROTECTED] sources]$ sudo dpkg --purge quake3-data
> (Reading database ... 92306 files and directories currently installed.)
> Removing quake3-data ...
> Purging configuration files for quake3-data ...
> dpkg - warning: while removing quake3-data, directory 
> `/var/cache/quake3-data/install' not empty so not removed.
> dpkg - warning: while removing quake3-data, directory 
> `/var/cache/quake3-data' not empty so not removed.
> 
> and that's the way I think it should be: the downloaded archives are not
> deleted.
I think I would argue that on purge, they should be deleted (as are
conffiles and logfiles).  You might want to have the removal script
(prerm, right?) only remove files that *look* like installer files
though, instead of rm -fr.

You might want to consider having /var/cache/quake3-data itself not
exist in the package (unless there's another use for it), and created
(and removed, later) only during the download steps.  But maybe it is
best if that directory is actually included in the package.

-- 
Clear skies,
Justin


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to