Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#17999 - [abs] does not work with local mirror

Attached to Project: Arch Linux
Opened by Pierre Schmitz (Pierre) - Monday, 25 January 2010, 17:26 GMT
Last edited by Allan McRae (Allan) - Saturday, 06 February 2010, 02:55 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Allan McRae (Allan)
Architecture All
Severity Very Low
Priority Low
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

pierre@opteron ~ % head -1 /etc/pacman.d/mirrorlist
Server = file:///srv/mirror/files/$repo/os/x86_64
pierre@opteron ~ % LANG=C sudo abs -t
==> Downloading tarballs...
==> core...
tar: core.abs.tar.gz: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Exiting with failure status due to previous errors
This task depends upon

Closed by  Allan McRae (Allan)
Saturday, 06 February 2010, 02:55 GMT
Reason for closing:  Fixed
Additional comments about closing:  git commit b62585f6
Comment by Allan McRae (Allan) - Tuesday, 26 January 2010, 00:48 GMT
Hmm... can wget handle local files? We are going to need to catch the use of a local server anyway so it might as well use a "cp" instead.
Comment by Pierre Schmitz (Pierre) - Tuesday, 26 January 2010, 07:50 GMT
It does not look like wget can fetch from the filesystem directly. We can either use cp or just use tar directly.
Comment by Dan Griffiths (Ghost1227) - Wednesday, 27 January 2010, 03:13 GMT
Patched to work with local mirror via rsync. Patch also implements  FS#17873 .
Comment by Dan Griffiths (Ghost1227) - Wednesday, 27 January 2010, 03:39 GMT
Forgot to take the preexisting local dir into account... fixed.
   abs.diff (0.8 KiB)
Comment by Allan McRae (Allan) - Wednesday, 27 January 2010, 03:49 GMT
Looks good to me.

@Pierre: can you test the local mirror part?
Comment by Dan Griffiths (Ghost1227) - Wednesday, 27 January 2010, 03:52 GMT
Not that it necessarily means anything, but I just ran a test with it on pkgbuild.com and it worked beautifully.
Comment by Allan McRae (Allan) - Wednesday, 27 January 2010, 04:41 GMT
Great. I just did not have a local mirror to test out on. Will push to git later.
Comment by Pierre Schmitz (Pierre) - Wednesday, 27 January 2010, 06:23 GMT
What about replacing "rsync -q" with "ln -s"? Not that it really matter performance wise.
Comment by Dan Griffiths (Ghost1227) - Wednesday, 27 January 2010, 06:32 GMT
should work fine... only real difference would be one less disk write :P

Loading...