Preuße, Hilmar:
Am 07.09.2024 um 23:49 schrieb Preuße, Hilmar:

Hi,

Can I tell mk-origtargz to use 7z instead of unzip to uncompress the zip file?


The unzip binary is hard coded in MkOrigtargz.pm, I tried to replace, by 7z, but failed until now:

             @cmd = ('7z','x');
             push @cmd, split ' ', $self->config->unzipopt
               if defined $self->config->unzipopt;
             #push @cmd, ('-o', $tempdir, $upstream_tar);
             push @cmd, ($upstream_tar);
             unless (ds_exec_no_fail(@cmd) >> 8 == 0) {
                ds_die("Repacking from zip or jar failed (could not unzip)\n");
                 return $self->status(1);
             }

in line 91 ff. The output directory for 7z needs to be specified "- ooutputdir", w/o a space. I don't speak perl, can anybody help?

Hilmar

Hi

```perl
push @cmd, ("-o${tempdir}", $upstream_tar);
```

Should do.

Best Regards,
Niels

Reply via email to