Pacman

Historical bug tracker for the Pacman package manager.

The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues

This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
Tasklist

FS#6726 - repo-add from pacman3 leaves .PKGINFO in current directory

Attached to Project: Pacman
Opened by Zulu (smoon) - Wednesday, 28 March 2007, 11:12 GMT
Task Type Bug Report
Category
Status Closed
Assigned To No-one
Architecture All
Severity Medium
Priority Normal
Reported Version 0.7.2 Gimmick
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

On parsing the command line arguments, repo-add from pacman3 (using the version from testing here) tries to extract .PKGINFO from the arguments that are files:

if ! tar xf "$arg" .PKGINFO 2>&1 >/dev/null; then

This line actually extracts .PKGINFO to the current working directory and does not delete it afterwards, which causes repo-add to leave the .PKGINFO for the last package it checks.
Using `tar xOf ...' instead should solve this.

I also wonder if the stdout/stderr redirection is correct that way, at least it does not work for me. Using `... &> /dev/null' instead fixes this.
This task depends upon

Closed by  Aaron Griffin (phrakture)
Friday, 30 March 2007, 03:33 GMT
Reason for closing:  Fixed
Additional comments about closing:  In CVS
Comment by Aaron Griffin (phrakture) - Wednesday, 28 March 2007, 15:30 GMT
Good catch. I'll fix this up tonight.

Loading...