Bug#32068: multicd can't reinstall removed package

1999-01-18 Thread Martin Schulze
- Forwarded message from Martin Schulze <[EMAIL PROTECTED]> -

Package: dpkg-multicd
Version: 0.11
Severity: important

I'm awfully sorry but apparently I have to file an important bug report
against this pkackage (or dpkg?).  It should be fixed before we release
slink.

First the symptoms:

  . You install package foo
  . You mark package foo for removal
  . You run dpkg --pending --remove
  . You mark package foo for installation
  . You try to install it
  . dselect/multicd/dpkg won't install it
  . You're lost until you re-run [U]pdate

Now the technical part:

If you install a package (using dpkg -i foo.deb or dselect) dpkg modifies
the record in the available file and replaces it with the proper record
from the status file (guessed or experienced by Ruud).  As a result of
this the available file lacks the fields Filename: MD5sum: and X-Medium:
which makes it impossible to install this package again since the
methods don't have a chance to find out where the package is located.

This doesn't happen with some other methods since they don't depend on
the filename being recorded in the available file.

Solution:

multicd has to copy the Packages files into $methdir/multicd/ and access
them directly instead of the available file.

Since this needs a redesign of the installation method and I'm somewhat
short with time I'd appreciate somebody sending me a proper patch.

Regards,

Joey

- End forwarded message -

-- 
We all know Linux is great... it does infinite loops in 5 seconds.
- Linus Torvalds

Please always Cc to me when replying to me on the lists.



Re: Bug#32068: multicd can't reinstall removed package

1999-01-19 Thread Andy Mortimer
Hi,

Martin Schulze <[EMAIL PROTECTED]> writes:
[...]
> If you install a package (using dpkg -i foo.deb or dselect) dpkg modifies
> the record in the available file and replaces it with the proper record
> from the status file (guessed or experienced by Ruud).  As a result of
> this the available file lacks the fields Filename: MD5sum: and X-Medium:
> which makes it impossible to install this package again since the
> methods don't have a chance to find out where the package is located.

I've found this with dpkg-mountable too; it can also happen if a
package fails after a certain point in installation (I think). I never 
quite worked out when it happened, though.

> Solution:
> 
> multicd has to copy the Packages files into $methdir/multicd/ and
> access them directly instead of the available file.
>
> Since this needs a redesign of the installation method and I'm somewhat
> short with time I'd appreciate somebody sending me a proper patch.

The way I solved this was to simply make a copy of the *available*
file, after doing dpkg --update-avail in the [U]pdate method, and then 
parsing that copy in the installation method. If this doesn't work for 
you, you could always make the copy at the end of the [U]pdate method, 
and then copy it back at the beginning of the [I]nstall method! (It's
not the prettiest method ever, but it would work ...)

Hope this helps,

Andy

-- 
Andy Mortimer [EMAIL PROTECTED]
-- 
Andy walking, Andy tired,
Andy take a little snooze
-- "Andy Warhol," David Bowie



Re: Bug#32068: multicd can't reinstall removed package

1999-01-19 Thread Martin Schulze
Andy Mortimer wrote:
> > Solution:
> > multicd has to copy the Packages files into $methdir/multicd/ and
> > access them directly instead of the available file.
> >
> > Since this needs a redesign of the installation method and I'm somewhat
> > short with time I'd appreciate somebody sending me a proper patch.
> 
> The way I solved this was to simply make a copy of the *available*
> file, after doing dpkg --update-avail in the [U]pdate method, and then 
> parsing that copy in the installation method. If this doesn't work for 
> you, you could always make the copy at the end of the [U]pdate method, 
> and then copy it back at the beginning of the [I]nstall method! (It's
> not the prettiest method ever, but it would work ...)

This sounds like an easy workaround, could save me quite some time.

Thanks,

Joey

-- 
Those who don't understand Unix are condemned to reinvent it, poorly.

Please always Cc to me when replying to me on the lists.



Re: Bug#32068: multicd can't reinstall removed package

1999-01-20 Thread Martin Schulze
A fixed version has just been uploaded to Incoming.

Regards,

Joey

-- 
Computers are not intelligent.  They only think they are.

Please always Cc to me when replying to me on the lists.