Subject: | Options passed as hashref no more works properly since 0.46 |
Date: | Mon, 7 Sep 2015 22:37:31 +0200 |
To: | bug-File-Rsync [...] rt.cpan.org |
From: | Axel Beckert <abe [...] cpan.org> |
Hi,
I had to change all calls to File::Rsync->new({…}) as well as to
$rsync->exec({…}) to drop the curly braces for using File::Rsync 0.46
because otherwise I always got the output of the rsync usage message.
Example cases: Run "make test" after checking out
https://github.com/xtaran/unburden-home-dir at commit
bd63bfc91a1a74b4f891a29ca5cabf367488d8a2.
It fails badly as can be seen here at Travis CI:
https://travis-ci.org/xtaran/unburden-home-dir/jobs/78825542
This patch fixed it:
https://github.com/xtaran/unburden-home-dir/commit/c0118cf1d11040b29245355b74e77bb86a93de7a
(Luckily dropping the curly braces still seems to work with earlier,
at least the above test suite at current state works even with
File::Rsync at version 0.42 of 2005.
Kind regards, Axel
--
/~\ Plain Text Ribbon Campaign | Axel Beckert
\ / Say No to HTML in E-Mail and News | abe@deuxchevaux.org (Mail)
X See http://www.nonhtmlmail.org/campaign.html | abe@noone.org (Mail+Jabber)
/ \ I love long mails: http://email.is-not-s.ms/ | http://abe.noone.org/ (Web)