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#13160 - git packages prototype could use "git clone" instead of "cp"

Attached to Project: Arch Linux
Opened by Gergely (imrehg) - Sunday, 08 February 2009, 14:34 GMT
Last edited by Allan McRae (Allan) - Sunday, 22 February 2009, 09:01 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To Dan McGee (toofishes)
Allan McRae (Allan)
Architecture All
Severity Low
Priority Normal
Reported Version None
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Checking the git packages prototype [1], one could do better if instead of copying a git repo to a "build" dir, cloning it. That is, instead of:
cp -r "$srcdir/$_gitname" "$srcdir/$_gitname-build"
do:
git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"

This would save space and would be faster in the same time, as git uses hard links whenever possible instead of actual copying (e.g. [2]).

I changed the wiki a while ago since I started to use this method, and just been brought to my attention that the ABS prototype is different, so though file a feature request for this.


[1] http://projects.archlinux.org/?p=abs.git;a=blob;f=prototypes/PKGBUILD-git.proto;hb=HEAD
[2] http://www-cs-students.stanford.edu/~blynn/gitmagic/ch03.html#_light_speed_multitask
This task depends upon

Closed by  Allan McRae (Allan)
Sunday, 22 February 2009, 09:01 GMT
Reason for closing:  Fixed
Additional comments about closing:  Patch in git.
Comment by Allan McRae (Allan) - Sunday, 08 February 2009, 22:14 GMT
This sounds reasonable to me.

Dan: Comments?
Comment by Dan McGee (toofishes) - Sunday, 08 February 2009, 22:23 GMT
Fine with me. If someone makes a patch I'll pull it in.
Comment by Gergely (imrehg) - Monday, 09 February 2009, 02:25 GMT
Here it is.
Comment by Allan McRae (Allan) - Sunday, 22 February 2009, 09:01 GMT

Loading...