summaryrefslogtreecommitdiffstats
path: root/isomd5sum/implantisomd5.c
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2003-03-21 16:30:43 +0000
committerMike Fulbright <msf@redhat.com>2003-03-21 16:30:43 +0000
commitdd652f84b1e0de892e10e19ac75bd175230bece6 (patch)
tree2788ecdc46ae12ed68f49939950fd308d9569a2a /isomd5sum/implantisomd5.c
parentc29f0955045cdd02965a14300ce5e99364db2d1b (diff)
downloadanaconda-dd652f84b1e0de892e10e19ac75bd175230bece6.tar.gz
anaconda-dd652f84b1e0de892e10e19ac75bd175230bece6.tar.xz
anaconda-dd652f84b1e0de892e10e19ac75bd175230bece6.zip
added python module for easy scripting of implanting and checking md5sums for tim
Diffstat (limited to 'isomd5sum/implantisomd5.c')
-rw-r--r--isomd5sum/implantisomd5.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/isomd5sum/implantisomd5.c b/isomd5sum/implantisomd5.c
index 589fb8e49..5334c4b27 100644
--- a/isomd5sum/implantisomd5.c
+++ b/isomd5sum/implantisomd5.c
@@ -50,7 +50,11 @@ int main(int argc, char **argv) {
if (!args || !args[0] || !args[0][0])
usage();
- rc = implantISOFile((char *)args[0], supported, forceit, errstr);
- if (rc)
- fprintf(stderr, errstr);
+ rc = implantISOFile((char *)args[0], supported, forceit, 0, &errstr);
+ if (rc) {
+ fprintf(stderr, "ERROR: %s\n", errstr);
+ exit(1);
+ } else {
+ exit(0);
+ }
}