[pacman-dev] [PATCH] Integrate versionpkg into makepkg

Scott Horowitz stonecrest at gmail.com
Fri Oct 26 15:50:21 EDT 2007


On 10/26/07, Dan McGee <dpmcgee at gmail.com> wrote:
> On 10/26/07, Scott Horowitz <stonecrest at gmail.com> wrote:
> > On 10/26/07, Aaron Griffin <aaronmgriffin at gmail.com> wrote:
> > >
> > > I only have a few comments, which are probably more directed at
> > > versionpkg itself.
> > >
> > > > +update_pb() {
> > > > +       sed -i "1,11 s/pkgver=[^ ]*/pkgver=$1/" ./$BUILDSCRIPT
> > > > +}
> > > > +
> > >
> > > The 1,11 scares me here. It seems kinda arbitrary. To me this seems better:
> > >
> > >    sed -i "s/^pkgver=[^ ]*/pkgver=$1/" ./$BUILDSCRIPT
> > >
> > > But might also fail. I don't know, but the 1,11 choice is off-putting to me.
> >
> > How might it fail? And yes, that function is pretty much directly from
> > versionpkg..
>
> If the pkgver is not in the first 11 lines of the PKGBUILD? It seems
> pretty arbitrary for versionpkg to enforce that.

Oh sorry, I meant to ask how it might fail if you removed that first
11 lines part. Aaron said "But might also fail?" to his own line. And
I'm not suggesting it won't, I'm more curious than anything.

Scott




More information about the pacman-dev mailing list