[pacman-dev] [PATCH] BSD/Mac OS X sed inplace backups

Dan McGee dpmcgee at gmail.com
Sun Feb 15 21:05:05 EST 2009


On Sun, Feb 15, 2009 at 7:19 PM, Allan McRae <allan at archlinux.org> wrote:
> Thanks for the explaination.  This change make sense to me now.
>
> I assume that if PKGBUILD.pkgsave actually existed on someones system then
> this would overwrite it.  It would be better to get the temporary filename
> using "mktemp -u ./$BUILDSCRIPT.xxxxxxxx".  You can then extract the .xxxx
> part using bash string manipulation.

+1 for Allan's suggestion. I'll wait for someone to update the patch.

-Dan


More information about the pacman-dev mailing list