* Support showing the contents of ISO images (using isoinfo in
cdrkit).
This commit is contained in:
parent
11ebba90db
commit
3e192cbb90
@ -75,7 +75,7 @@ let
|
|||||||
libxslt sqlite subversion openssh nix coreutils findutils
|
libxslt sqlite subversion openssh nix coreutils findutils
|
||||||
gzip bzip2 lzma gnutar unzip
|
gzip bzip2 lzma gnutar unzip
|
||||||
gnused graphviz
|
gnused graphviz
|
||||||
rpm dpkg
|
rpm dpkg cdrkit
|
||||||
]);
|
]);
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
@ -207,6 +207,11 @@ sub contents : Chained('build') PathPart Args(1) {
|
|||||||
error($c, "`unzip' error: $?") if $? != 0;
|
error($c, "`unzip' error: $?") if $? != 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
elsif ($path =~ /\.iso$/ ) {
|
||||||
|
$res = `isoinfo -d -i "$path" && isoinfo -l -R -i "$path"`;
|
||||||
|
error($c, "`isoinfo' error: $?") if $? != 0;
|
||||||
|
}
|
||||||
|
|
||||||
else {
|
else {
|
||||||
error($c, "Unsupported file type.");
|
error($c, "Unsupported file type.");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user