* Support showing the contents of ISO images (using isoinfo in

cdrkit).
This commit is contained in:
Eelco Dolstra 2009-07-07 11:37:47 +00:00
parent 11ebba90db
commit 3e192cbb90
2 changed files with 6 additions and 1 deletions

View file

@ -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 = ''

View file

@ -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.");
}