On 2009-02-25 17:28:09 +0100, Michael Schroeder wrote:
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:
Ah I would have needed it before sunday in order to save some time:)
open(F, '<', $cpiofile) || die("$cpiofile: $!\n"); my $uploaded = BSHTTP::cpio_receiver(BSHTTP::fd2hdr(\*F), {'directory' => $dir}); close F;
Awesome! Thanks! I'll incorporate all your suggestions and post a new patch afterwards. Marcus -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org