FS#5057 - Makepkg fails when extracting archive if files already exist
Attached to Project:
Pacman
Opened by Casey McGinty (cmcginty) - Monday, 17 July 2006, 06:33 GMT
Last edited by Judd Vinet (judd) - Friday, 04 August 2006, 05:43 GMT
Opened by Casey McGinty (cmcginty) - Monday, 17 July 2006, 06:33 GMT
Last edited by Judd Vinet (judd) - Friday, 04 August 2006, 05:43 GMT
|
Details
I noticed that the 'makepkg' command will fail if I try to
run it more than once on the linux26 package. Here is the
output of the second run:
==> Validating source files with MD5sums linux-2.6.17.tar.bz2 ... Passed patch-2.6.17.6.bz2 ... Passed linux-r1000(103).zip ... Passed r1000-build.patch ... Passed config ... Passed config.x86_64 ... Passed logo_linux_clut224.ppm ... Passed logo_linux_mono.pbm ... Passed logo_linux_vga16.ppm ... Passed mkinitcpio-kernel26.conf ... Passed powernow-k7.patch ... Passed acpi-dsdt-initrd-v0.8.1-2.6.16.patch ... Passed pata-fix.diff ... Passed pwc-2.6.18-backport.patch.bz2 ... Passed pcspeaker_x86_64.patch ... Passed ==> Extracting Sources... ==> tar --use-compress-program=bzip2 -xf linux-2.6.17.tar.bz2 ==> bunzip2 patch-2.6.17.6.bz2 bunzip2: Output file patch-2.6.17.6 already exists. ==> ERROR: Failed to extract patch-2.6.17.6.bz2 ==> Aborting... I think that if the file already exists it should be overridden without an error message. The command actually already does this (extraction of linux source code worked), but in this situation (patch file) it causes a failure. |
This task depends upon
Closed by Aaron Griffin (phrakture)
Wednesday, 03 January 2007, 06:43 GMT
Reason for closing: Implemented
Additional comments about closing: Fixed in CVS
Wednesday, 03 January 2007, 06:43 GMT
Reason for closing: Implemented
Additional comments about closing: Fixed in CVS
Comment by Casey McGinty (cmcginty) -
Tuesday, 18 July 2006, 02:01 GMT
The fix is to add '-f' to bunzip2 command. Also should update
other decompressors that do not have 'force' flag set.