diff options
author | Chris Lumens <clumens@redhat.com> | 2007-06-19 22:53:22 +0000 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2007-06-19 22:53:22 +0000 |
commit | f005de5d9b35600f22fe2483f1c6c12eeebf170a (patch) | |
tree | dd010d3e102bdabeb808dc217b8fd3c0dfcc3ebf /loader2/loader.c | |
parent | 44c6cae3b70a6a1616bf916538a4b58c0d388b9e (diff) | |
download | anaconda-f005de5d9b35600f22fe2483f1c6c12eeebf170a.tar.gz anaconda-f005de5d9b35600f22fe2483f1c6c12eeebf170a.tar.xz anaconda-f005de5d9b35600f22fe2483f1c6c12eeebf170a.zip |
Move copyDirectory out of both init.c and method.c.
Diffstat (limited to 'loader2/loader.c')
-rw-r--r-- | loader2/loader.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/loader2/loader.c b/loader2/loader.c index 6f10dad06..6fcb035d7 100644 --- a/loader2/loader.c +++ b/loader2/loader.c @@ -52,6 +52,7 @@ #include <mcheck.h> #endif +#include "copy.h" #include "loader.h" #include "loadermisc.h" /* JKFIXME: functions here should be split out */ #include "log.h" @@ -309,6 +310,15 @@ static void spawnShell(void) { return; } + +static void copyWarnFn (char *msg) { + logMessage(WARNING, msg); +} + +static void copyErrorFn (char *msg) { + newtWinMessage(_("Error"), _("OK"), _(msg)); +} + void loadUpdates(struct loaderData_s *loaderData) { int done = 0; int rc; @@ -361,12 +371,14 @@ void loadUpdates(struct loaderData_s *loaderData) { } else { /* Copy everything to /tmp/updates so we can unmount the disk */ winStatus(40, 3, _("Updates"), _("Reading anaconda updates...")); - if (!copyDirectory("/tmp/update-disk", "/tmp/updates")) done = 1; + if (!copyDirectory("/tmp/update-disk", "/tmp/updates", copyWarnFn, + copyErrorFn)) + done = 1; newtPopWindow(); umount("/tmp/update-disk"); } } while (!done); - + return; } |