1
0
Fork 0
mirror of https://github.com/NixOS/hydra.git synced 2024-10-18 17:02:28 -04:00

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

View file

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