FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux Pacman Development

 
 
LinkBack Thread Tools
 
Old 02-10-2008, 04:32 PM
"Roman Kyrylych"
 
Default makepkg: Support for resuming source downloads

Hi!

The inability of makepkg to resume broken source downloads annoyed me
pretty much, so here's a patch attached. ;-)

Before applying the patch:

$ makepkg -o
==> Making package: audacious-itouch-control 0.1.1-2 (неділя, 10
лютого 2008 17:23:53 +0200)
==> Retrieving Sources...
-> Downloading itouch-control-0.1.1.tar.gz...
[ . . . skipped . . . ]
13% [====> ] 44 560 24,7K/s
==> ERROR: Aborted by user! Exiting...

[roman@home audacious-itouch-control]$ makepkg -o
==> Making package: audacious-itouch-control 0.1.1-2 (неділя, 10
лютого 2008 17:24:04 +0200)
==> Retrieving Sources...
-> Using cached copy of itouch-control-0.1.1.tar.gz
==> Validating source files with md5sums...
itouch-control-0.1.1.tar.gz ... FAILED
==> ERROR: One or more files did not pass the validity check!

This is because makepkg doesn't know if file is complete, or not.
But pacman is able to resume downloads.
This inspired me to do a very similar implementation in makepkg.

After applying the patch:

[roman@home audacious-itouch-control]$ makepkg -o
==> Making package: audacious-itouch-control 0.1.1-2 (неділя, 10
лютого 2008 17:28:22 +0200)
==> Retrieving Sources...
-> Downloading itouch-control-0.1.1.tar.gz...
[ . . . skipped . . . ]
12% [====> ] 41 672 24,2K/s
==> ERROR: Aborted by user! Exiting...

[roman@home audacious-itouch-control]$ makepkg -o
==> Making package: audacious-itouch-control 0.1.1-2 (неділя, 10
лютого 2008 19:04:24 +0200)
==> Retrieving Sources...
-> Downloading itouch-control-0.1.1.tar.gz...
[ . . . skipped . . . ]
80% [+++++++========================> ] 259 593 --.-K/s in 16m 40s

2008-02-10 19:21:07 (197 B/s) - Read error at byte 259593/323774
(Connection timed out). Продовження спроб.

--2008-02-10 19:21:08-- (спроба: 2)
[ . . . skipped . . . ]
100%[++++++++++++++++++++++++++++++++=======>] 323 774 18,1K/s in 3,5s

2008-02-10 19:21:12 (18,1 KB/s) - `itouch-control-0.1.1.tar.gz.part'
saved [323774/323774]

==> Validating source files with md5sums...
itouch-control-0.1.1.tar.gz ... Passed
==> Extracting Sources...
-> bsdtar -x -f itouch-control-0.1.1.tar.gz
==> Sources are ready.


The patch also includes changes to man makepkg.conf, and makepkg.conf
itself, because of introduced %o and %u pseudo-variables (same as in
XferCommand).

--
Roman Kyrylych (*оман Кирилич)
_______________________________________________
pacman-dev mailing list
pacman-dev@archlinux.org
http://archlinux.org/mailman/listinfo/pacman-dev
 

Thread Tools




All times are GMT. The time now is 05:50 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org