Monday, May 28, 2018

Re: portimport: reminder to commit db/user.list

On Mon, May 28, 2018 at 01:39:29PM +0100, Stuart Henderson wrote:
> Does anyone have a port to import with a new uid/gid they could test
> this with please? :-)
>
> Index: portimport
> ===================================================================
> RCS file: /cvs/ports/infrastructure/bin/portimport,v
> retrieving revision 1.5
> diff -u -p -r1.5 portimport
> --- portimport 9 Feb 2014 15:10:49 -0000 1.5
> +++ portimport 28 May 2018 12:38:36 -0000
> @@ -62,6 +62,7 @@ cvs -n -d$cvsroot import ports/$pkgpath
> read ans?'Does this look correct? [y/n] '
> if [[ $ans == +(y|Y) ]]; then
> cvs -d$cvsroot import ports/$pkgpath $user ${user}_$timestamp
> + grep -q "^@new" pkg/P* && echo "New users/groups, remember to commit infrastructure/db/user.list!"

Maybe this instead? In case another @newfoobar is introduced at some point.

grep -E "^@new(user|group)" pkg/P*

> cd "$portsdir/${pkgpath%/*}"
> cvs -d$cvsroot update -AdP ${pkgpath##*/}
> echo "Don't forget to commit the ${pkgpath%/*}/Makefile when you're done!"
>

--
Antoine

No comments:

Post a Comment