diff options
author | Eric Bélanger <snowmaniscool@gmail.com> | 2013-10-23 23:34:12 -0400 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2013-10-27 15:54:41 +0100 |
commit | 70309118ab1d082bf12dfd39c3068f5fdd6662dc (patch) | |
tree | 42784ca3c5fd7a1081d0a029611792643e59fcc8 /checkpkg.in | |
parent | 164f5b758d56ce36ac8b087c1d55b8719555711f (diff) | |
download | devtools32-70309118ab1d082bf12dfd39c3068f5fdd6662dc.tar.xz |
checkpkg: Create symlinks to old packages in $TEMPDIR instead of $PWD
Signed-off-by: Eric Bélanger <snowmaniscool@gmail.com>
Signed-off-by: Pierre Schmitz <pierre@archlinux.de>
Diffstat (limited to 'checkpkg.in')
-rw-r--r-- | checkpkg.in | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/checkpkg.in b/checkpkg.in index ef46399..3bd22e4 100644 --- a/checkpkg.in +++ b/checkpkg.in @@ -58,15 +58,15 @@ for _pkgname in "${pkgname[@]}"; do if [[ $pkgurl = file://* ]]; then ln -s "${pkgurl#file://}" "${pkgurl##file://*/}" elif [[ -f "$PKGDEST/$oldpkg" ]]; then - ln -s "$PKGDEST/$oldpkg" "$oldpkg" + ln -s "$PKGDEST/$oldpkg" "$TEMPDIR/$oldpkg" elif [[ -f "$STARTDIR/$oldpkg" ]]; then - ln -s "$STARTDIR/$oldpkg" "$oldpkg" + ln -s "$STARTDIR/$oldpkg" "$TEMPDIR/$oldpkg" else - curl -fsLC - --retry 3 --retry-delay 3 -o "$oldpkg" "$pkgurl" + curl -fsLC - --retry 3 --retry-delay 3 -o "$TEMPDIR/$oldpkg" "$pkgurl" fi fi - bsdtar tf "$oldpkg" | sort > "$TEMPDIR/filelist-$_pkgname-old" + bsdtar tf "$TEMPDIR/$oldpkg" | sort > "$TEMPDIR/filelist-$_pkgname-old" bsdtar tf "$pkgfile" | sort > "$TEMPDIR/filelist-$_pkgname" sdiff -s "$TEMPDIR/filelist-$_pkgname-old" "$TEMPDIR/filelist-$_pkgname" |