Mailinglist Archive: opensuse-buildservice (189 mails)

< Previous Next >
Re: [opensuse-buildservice] inject local rpm data for buildinfo calculation
  • From: Michael Schroeder <mls@xxxxxxx>
  • Date: Wed, 25 Feb 2009 17:28:09 +0100
  • Message-id: <20090225162809.GA20208@xxxxxxx>
On Wed, Feb 25, 2009 at 05:24:58PM +0100, Marcus Hüwe wrote:
Now we can easily check if $fn starts with 070701. The only problem with this
approach is that we would need to outsource parts from BSHTTP::cpio_receiver()
into a more "generic" method (basically we only need to pass a ref to method
which reads the data (either from a file or from a socket)).

Or is there an easy way which I didn't found?:)

Hah, see my commit a couple of hours ago. You can now do:

open(F, '<', $cpiofile) || die("$cpiofile: $!\n");
my $uploaded = BSHTTP::cpio_receiver(BSHTTP::fd2hdr(\*F), {'directory' =>
close F;


Michael Schroeder mls@xxxxxxx
SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups