Need perl help to remove dpkg dependency on licensecheck (devscripts-minimal)

Sandro Mani manisandro at gmail.com
Fri Oct 9 11:00:57 UTC 2015



On 09.10.2015 12:26, Ville Skyttä wrote:
> On Fri, Oct 9, 2015 at 1:05 PM, Sandro Mani <manisandro at gmail.com> wrote:
>> can anyone suggest an alternative way to accomplish the same which
>> does not use spawn from Dpkg::IPC?
>>
>> [1]
>> https://github.com/Debian/devscripts/commit/c0687bcde23108dd42e146573c368b6905e6b8e8
> # at top of licensecheck
> use IPC::Run qw(run);
> # then later to get the desired output to $mime
> my $mime;
> run [qw(file --brief --mime --dereference), $file], \undef, \$mime;
Thanks!


More information about the devel mailing list