Skip to content

Commit

Permalink
Fix error duplicate target (for example for linux-git)
Browse files Browse the repository at this point in the history
Example:

    $ packer -S linux-git
    error: 'linux-git-headers-6.9.rc1.r274.486291a0e624-1-x86_64.pkg.tar.zst': duplicate target
  • Loading branch information
azat committed Mar 30, 2024
1 parent 945e19e commit dbcace7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packer
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ aurinstall() {
[[ $? -ne 0 ]] && echo "The build failed." && return 1
pkgtarfiles=""
for i in "${pkgname[@]}"; do
pkgtarfiles="$pkgtarfiles $i-*$PKGEXT"
pkgtarfiles="$pkgtarfiles $i-$pkgver-$pkgrel*$PKGEXT"
done
if [[ $2 = dependency ]]; then
runasroot $PACMAN ${PACOPTS[@]} --asdeps -U $pkgtarfiles
Expand Down

0 comments on commit dbcace7

Please sign in to comment.