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

Bug#41025: marked as done (Upgrading pcmcia-cs when using ethernet card)



Your message dated Thu, 8 Jul 1999 20:21:40 -0600 (MDT)
with message-id <[🔎] Pine.LNX.3.96.990708201851.9198K-100000@Wakko.deltatee.com>
and subject line Bug#41025: Upgrading pcmcia-cs when using ethernet card
has caused the attached bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I'm
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Ian Jackson
(administrator, Debian bugs database)

Received: (at submit) by bugs.debian.org; 9 Jul 1999 02:00:35 +0000
Received: (qmail 16175 invoked from network); 9 Jul 1999 02:00:34 -0000
Received: from gipwce.shinshu-u.ac.jp (HELO gipwc.shinshu-u.ac.jp) (160.252.64.30)
  by master.debian.org with SMTP; 9 Jul 1999 02:00:34 -0000
Received: from IMSL.shinshu-u.ac.jp (IMSL.shinshu-u.ac.jp [160.252.150.172])
	by gipwc.shinshu-u.ac.jp (8.8.8+2.7Wbeta7/3.6W98021015) with SMTP id KAA07835
	for <submit@bugs.debian.org>; Fri, 9 Jul 1999 10:59:25 +0900 (JST)
Received: by IMSL.shinshu-u.ac.jp (AIX 4.1/UCB 5.64/4.03)
          id AA15606; Fri, 9 Jul 1999 11:02:09 +0900
To: submit@bugs.debian.org
Subject: Upgrading pcmcia-cs when using ethernet card
From: Olaf Meeuwissen <olaf@IMSL.shinshu-u.ac.jp>
Date: 09 Jul 1999 11:02:09 +0900
Message-Id: <[🔎] uepv22y40u.fsf@IMSL.shinshu-u.ac.jp>
Lines: 57

Package: apt
Version: 0.3.11

I depend on a PCMCIA ethernet card for my network connection.  When
upgrading `pcmcia-cs' all PCMCIA services are (have to be?) shut down.
This effectively cuts my network connection.  As a result, ftp-ing the
package or accessing it on an remote file system is no longer possible
and the upgrade fails miserably.

I hacked up a little shell script (untested as of yet), that aims to
work around this without user intervention.  I use a local mirror of
either stable or unstable and an ftp archive as a backup of stable.
Note that `--download-only' will not get anything if the package to
get is on the NFS mounted file system.

#! /bin/sh
#
#  Updating pcmcia-cs is broken in apt, work-around.  First install
#  all dependencies.  Next try to download a copy of pcmcia-cs.  In
#  case it does not result in a package in /var/cache/apt/archives,
#  copy the version on the local mirror which is the newer version.
#
fs=/mnt/debian			# NFS mounted local mirror
depends="`apt-get --simulate install pcmcia-cs |
    grep ^Inst |
    sed -e 's/^Inst//' -e 's/\[.*$//' |
    sed -e 's/^ pcmcia-cs//'`"
apt-get install $depends >&4
apt-get --download-only install pcmcia-cs >&4
find /var/cache/apt/archives -name 'pcmcia-cs_*.deb' -exec ftp=yes
if test "$ftp" != yes
then
    arch="`dpkg --print-architecture`"
    #  This assumes there is only one line with $fs ...
    version="`grep $fs /etc/apt/sources.list | cut -d' ' -f3`"
    find $fs/dists/$version/binary-$arch/main \
	-name 'pcmcia-cs_*.deb' -exec cp \{} /tmp \;
fi
umount $fs
/etc/init.d/pcmcia stop
if test "$ftp" = yes
then
    apt-get install pcmcia-cs >&4
    rm /var/cache/apt/archives/pcmcia-cs_*.deb
else
    dpkg --install /tmp/pcmcia-cs_*.deb >&4
    rm /tmp/pcmcia-cs_*.deb
fi
/etc/init.d/pcmcia start
mount $fs

I am using potato with kernel 2.0.36.

Methinks the logic for a fix in apt-get should be along very similar
lines.  Hope this helps.
-- 
Olaf Meeuwissen                              Shinshu University, Japan


Reply to: