Commit 3029c8e4 authored by Pierre Schmitz's avatar Pierre Schmitz
Browse files

checkpkg: Fix usage of local mirrors

parent b8dd4408
Loading
Loading
Loading
Loading
+8 −10
Original line number Diff line number Diff line
@@ -48,9 +48,8 @@ for _pkgname in "${pkgname[@]}"; do
		die "The built package (%s) is the one in the repo right now!" "$_pkgname"
	fi

	if [[ ! -f $oldpkg ]]; then
	if [[ $pkgurl = file://* ]]; then
			ln -s "${pkgurl#file://}" "${pkgurl##file://*/}"
		ln -s "${pkgurl#file://}" "$TEMPDIR/$oldpkg"
	elif [[ -f "$PKGDEST/$oldpkg" ]]; then
		ln -s "$PKGDEST/$oldpkg" "$TEMPDIR/$oldpkg"
	elif [[ -f "$STARTDIR/$oldpkg" ]]; then
@@ -58,7 +57,6 @@ for _pkgname in "${pkgname[@]}"; do
	else
		curl -fsLC - --retry 3 --retry-delay 3 -o "$TEMPDIR/$oldpkg" "$pkgurl"
	fi
	fi

	bsdtar tf "$TEMPDIR/$oldpkg" | sort > "$TEMPDIR/filelist-$_pkgname-old"
	bsdtar tf "$pkgfile" | sort > "$TEMPDIR/filelist-$_pkgname"