forked from lix-project/hydra
* 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
|
||||
gzip bzip2 lzma gnutar unzip
|
||||
gnused graphviz
|
||||
rpm dpkg
|
||||
rpm dpkg cdrkit
|
||||
]);
|
||||
|
||||
installPhase = ''
|
||||
|
|
|
@ -207,6 +207,11 @@ sub contents : Chained('build') PathPart Args(1) {
|
|||
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 {
|
||||
error($c, "Unsupported file type.");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue