Commit 4ab8a7a
committed
import_srpm: check command rpm2cpio|cpio
`rpm2cpio` might not exist on the system, and `cpio` return the error
"premature end of archive" in that case.
This doesn't check if `rpm2cpio` returns an error but it's probably ok
to lean on `cpio` returning an error.
Also, check early if `rpm2cpio` actually exist on the system.
Signed-off-by: Anthony PERARD <anthony.perard@vates.tech>1 parent 47b4417 commit 4ab8a7a
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
31 | 36 | | |
32 | 37 | | |
33 | 38 | | |
| |||
76 | 81 | | |
77 | 82 | | |
78 | 83 | | |
79 | | - | |
| 84 | + | |
80 | 85 | | |
81 | 86 | | |
82 | 87 | | |
| |||
0 commit comments