Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 250469
Collapse All | Expand All

(-)bin/ebuild.sh (-3 / +17 lines)
Lines 406-415 Link Here
406
				# that reason.  We just make sure on AIX `deb2targz` is
406
				# that reason.  We just make sure on AIX `deb2targz` is
407
				# installed.
407
				# installed.
408
				if type -P deb2targz > /dev/null; then
408
				if type -P deb2targz > /dev/null; then
409
					deb2targz "${srcdir}/${x}" || die "$myfail"
409
					y=${x##*/}
410
					mv "${srcdir}/${x/.deb/.tar.gz}" data.tar.gz
410
					local created_symlink=0
411
					if [ ! "$srcdir$x" -ef "$y" ] ; then
412
						# deb2targz always extracts into the same directory as
413
						# the source file, so create a symlink in the current
414
						# working directory if necessary.
415
						ln -sf "$srcdir$x" "$y" || die "$myfail"
416
						created_symlink=1
417
					fi
418
					deb2targz "$y" || die "$myfail"
419
					if [ $created_symlink = 1 ] ; then
420
						# Clean up the symlink so the ebuild
421
						# doesn't inadvertently install it.
422
						rm -f "$y"
423
					fi
424
					mv -f "${y%.deb}".tar.gz data.tar.gz || die "$myfail"
411
				else
425
				else
412
					ar x "${srcdir}/${x}" || die "$myfail"
426
					ar x "$srcdir$x" || die "$myfail"
413
				fi
427
				fi
414
				;;
428
				;;
415
			lzma)
429
			lzma)

Return to bug 250469