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

Ville Skyttä ville.skytta at iki.fi
Fri Oct 9 10:26:48 UTC 2015


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;


More information about the devel mailing list