Re: [CentOS] Passing password to script for rpmsign of list of .rpm files

2011-05-21 Thread Ljubomir Ljubojevic
Johnny Hughes wrote: > On 05/20/2011 01:13 PM, Keith Roberts wrote: >> On Fri, 20 May 2011, Ljubomir Ljubojevic wrote: >> >>> To: CentOS mailing list >>> From: Ljubomir Ljubojevic >>> Subject: [CentOS] Passing password to script for rpmsign of list of .rpm >>> files >>> >>> I am trying to automa

Re: [CentOS] Passing password to script for rpmsign of list of .rpm files

2011-05-21 Thread Johnny Hughes
On 05/20/2011 01:13 PM, Keith Roberts wrote: > On Fri, 20 May 2011, Ljubomir Ljubojevic wrote: > >> To: CentOS mailing list >> From: Ljubomir Ljubojevic >> Subject: [CentOS] Passing password to script for rpmsign of list of .rpm >> files >> >> I am trying to automatize signing of unsigned .rpm

Re: [CentOS] Passing password to script for rpmsign of list of .rpm files

2011-05-21 Thread John R. Dennison
On Sat, May 21, 2011 at 10:13:52AM +0200, Nicolas Thierry-Mieg wrote: > > agreed, using find alone is "another way to do it", although as stated > by John Pierce the second -name is useless here. > I was pointing out a flaw in the code and offering a correction using > "the same way to do it".

Re: [CentOS] Passing password to script for rpmsign of list of .rpm files

2011-05-21 Thread Ljubomir Ljubojevic
Nicolas Thierry-Mieg wrote: > John R. Dennison wrote: >> On Sat, May 21, 2011 at 09:30:06AM +0200, Nicolas Thierry-Mieg wrote: >>> Ljubomir Ljubojevic wrote: for i in $(find . -type f | grep .rpm); do rpmsign --addsign `find . -type f | grep .rpm | grep -v .zzz` >>> just a small comment,

Re: [CentOS] Passing password to script for rpmsign of list of .rpm files

2011-05-21 Thread Nicolas Thierry-Mieg
John R. Dennison wrote: > On Sat, May 21, 2011 at 09:30:06AM +0200, Nicolas Thierry-Mieg wrote: >> Ljubomir Ljubojevic wrote: >>> for i in $(find . -type f | grep .rpm); do >> >>> rpmsign --addsign `find . -type f | grep .rpm | grep -v .zzz` >> >> just a small comment, grep uses regexps so this doe

Re: [CentOS] Passing password to script for rpmsign of list of .rpm files

2011-05-21 Thread Ljubomir Ljubojevic
John R. Dennison wrote: > On Sat, May 21, 2011 at 12:50:10AM -0700, John R Pierce wrote: >> that won't work right anyways.the first -name says match just .rpm >> files. none of those will be .zzz so the 2nd expression won't ever get >> hit (all .rpm files are not .zzz files). > > That's wh

Re: [CentOS] Passing password to script for rpmsign of list of .rpm files

2011-05-21 Thread John R. Dennison
On Sat, May 21, 2011 at 12:50:10AM -0700, John R Pierce wrote: > > that won't work right anyways.the first -name says match just .rpm > files. none of those will be .zzz so the 2nd expression won't ever get > hit (all .rpm files are not .zzz files). That's what I get for posting at this h

Re: [CentOS] Passing password to script for rpmsign of list of .rpm files

2011-05-21 Thread John R Pierce
On 05/21/11 12:43 AM, John R. Dennison wrote: > find . -type f -name \*.rpm ! -name \*.zzz that won't work right anyways.the first -name says match just .rpm files. none of those will be .zzz so the 2nd expression won't ever get hit (all .rpm files are not .zzz files). -- john r pier

Re: [CentOS] Passing password to script for rpmsign of list of .rpm files

2011-05-21 Thread John R. Dennison
On Sat, May 21, 2011 at 09:30:06AM +0200, Nicolas Thierry-Mieg wrote: > Ljubomir Ljubojevic wrote: > > for i in $(find . -type f | grep .rpm); do > > > rpmsign --addsign `find . -type f | grep .rpm | grep -v .zzz` > > just a small comment, grep uses regexps so this doesn't do what you want > (eg

Re: [CentOS] Passing password to script for rpmsign of list of .rpm files

2011-05-21 Thread Nicolas Thierry-Mieg
Ljubomir Ljubojevic wrote: > for i in $(find . -type f | grep .rpm); do > rpmsign --addsign `find . -type f | grep .rpm | grep -v .zzz` just a small comment, grep uses regexps so this doesn't do what you want (eg the . is a wildcard char). Your script can break, silently (won't sign rpms whose

Re: [CentOS] Passing password to script for rpmsign of list of .rpm files

2011-05-20 Thread Ljubomir Ljubojevic
This is repeated reply, so it is properly threaded. Sorry for double post. Marian Marinov wrote: > > > > You should also check this: > > > > http://blogs.23.nu/till/2008/12/rpm-addsign-with-gpg-agent/ > > I am not really trilled by entering blank passwords. Anyhow, I have developed nice scri

Re: [CentOS] Passing password to script for rpmsign of list of .rpm files

2011-05-20 Thread Ljubomir Ljubojevic
Marian Marinov wrote: > > You should also check this: > > http://blogs.23.nu/till/2008/12/rpm-addsign-with-gpg-agent/ > I am not really trilled by entering blank passwords. Anyhow, I have developed nice script for automatic signing of (--addsign = only unsigned, --resign = all) rpm's. Features

Re: [CentOS] Passing password to script for rpmsign of list of .rpm files

2011-05-20 Thread Ljubomir Ljubojevic
Marian Marinov wrote: > > You should also check this: > > http://blogs.23.nu/till/2008/12/rpm-addsign-with-gpg-agent/ > I am not really trilled by entering blank passwords. Anyhow, I have developed nice script for automatic signing of (--addsign = only unsigned, --resign = all) rpm's. Feature

Re: [CentOS] Passing password to script for rpmsign of list of .rpm files

2011-05-20 Thread Marian Marinov
On Friday 20 May 2011 21:11:58 Ljubomir Ljubojevic wrote: > John Hodrien wrote: > > On Fri, 20 May 2011, Ljubomir Ljubojevic wrote: > >> I am trying to automatize signing of unsigned .rpm files. My repo has at > >> least 50 x 3 packages. > >> > >> But I would have to type numerous passwords for ea

Re: [CentOS] Passing password to script for rpmsign of list of .rpm files

2011-05-20 Thread Keith Roberts
On Fri, 20 May 2011, Ljubomir Ljubojevic wrote: > To: CentOS mailing list > From: Ljubomir Ljubojevic > Subject: [CentOS] Passing password to script for rpmsign of list of .rpm files > > I am trying to automatize signing of unsigned .rpm files. My repo has at > least 50 x 3 packages. > > But I

Re: [CentOS] Passing password to script for rpmsign of list of .rpm files

2011-05-20 Thread Ljubomir Ljubojevic
John Hodrien wrote: > On Fri, 20 May 2011, Ljubomir Ljubojevic wrote: > >> I am trying to automatize signing of unsigned .rpm files. My repo has at >> least 50 x 3 packages. >> >> But I would have to type numerous passwords for each file. I can not see >> hot to pass pass phrase to script. >> >> r

Re: [CentOS] Passing password to script for rpmsign of list of .rpm files

2011-05-20 Thread John Hodrien
On Fri, 20 May 2011, Ljubomir Ljubojevic wrote: > I am trying to automatize signing of unsigned .rpm files. My repo has at > least 50 x 3 packages. > > But I would have to type numerous passwords for each file. I can not see > hot to pass pass phrase to script. > > rpmsign --resign {--pass=??} ??