[pacman-dev] do we need requiredby?
Aaron Griffin
aaronmgriffin at gmail.com
Thu Nov 15 00:45:10 EST 2007
On Nov 14, 2007 7:57 PM, K. Piche <kpiche at rogers.com> wrote:
>
> On Wed, 2007-11-14 at 18:15 -0600, Aaron Griffin wrote:
> > On Nov 14, 2007 6:08 PM, Dan McGee <dpmcgee at gmail.com> wrote:
> > > We (anyone want to volunteer) also need to make a tool to remove
> > > requiredby entries.
> >
> > I was going to python it up... it's an easy file to parse and rewrite,
> > probably like 20 lines
>
> sed rules! :)
>
> grep -Rl REQUIREDBY /var/lib/pacman/local | xargs sed -i '/^%REQUIREDBY
> %/,/^$/ d'
>
> Course it may not handle corner cases...
Oh, nice. I can never recall how to make sed traverse multiple lines like that.
Any opinions on this guys? If we can just toss this in a post_upgrade,
then we're set
More information about the pacman-dev
mailing list