tazpkg and incomplete package downloads |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/slitaz Archives
]
- To: slitaz@xxxxxxxxxxxxxxxxxxx
- Subject: tazpkg and incomplete package downloads
- From: "Russell Dickenson" <russelldickenson@xxxxxxxxx>
- Date: Thu, 12 Jun 2008 22:10:12 +1000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=bQ6ku4WuxJSLS3CmeGQAjN0SBJwlEcktsS7aJeZsL3I=; b=Ug+hPWexPD4jnLwxhNnNuy8SFTEm3upI4A38qlowbXunv5MhhQw/e04QklUvws9Uwl J4G7718y/lsvJtchK+XGXhWAFiYC0H93gyHYh554Frx+Ji2pQMECIQOApInAS/YonCV0 KDPNStMfC9eOW7DOR98kylkxYQj0pe9kIopzk=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=dQSG45PZKfFIB+CemZ+WV534Z6Tc87M9QCyw1nf5xJTQNlKId4XZCnmanFu2c397TU mCZBldqRMv5OA3T001nJqaO1E9MKXDfdScVo8z500jq6Zutl/cHRQEDKNuWW9BAa+2p6 Aqi4tABUQbL0rbZ1f1Za+WvfpOpVvY22B/gS4=
I recently ran tazpkg for the first time to download and install a
package and its dependencies. One of its dependencies was quite large
and as I'm on dial-up Internet access, I cancelled the download with
[Control] & [C]. When I restarted the download, tazpkg attempted to
install the partially downloaded package. Of course this failed and I
understood why, since I'd manually canceled the download.
I wonder if I have this correct and if so, what might be done to fix
this behaviour? I have looked briefly at tazpkg's code and believe
that an additional check needs to be made before the package is
installed. What I don't understand is why wget is not leaving
incomplete package downloads with the ".part" extension. If it did,
it would be quite simple to detect incomplete packages (without using
MD5 sums) and deal with them promptly.
Regards,
Russell Dickenson (AKA phayz)
---
SliTaz GNU/Linux Mailing list.
Web site : http://www.slitaz.org/