Ignore:
Timestamp:
Apr 17, 2008, 1:29:45 AM (16 years ago)
Author:
Bruno Cornec
Message:

mondo.libmondo-cli.patch (Mark Pinkerton <Mark.Pinkerton_at_emageon.com>) modified to not duplicate the newt initialization stuff (we should rather remove them in mondoarchive)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.6/mondo/src/common/libmondo-cli.c

    r1915 r1917  
    162162
    163163#include <pthread.h>
    164 #include "../common/my-stuff.h"
    165 #include "../common/mondostructures.h"
    166 #include "mondo-cli-EXT.h"
    167 #include "../common/libmondo.h"
    168 
    169 //static char cvsid[] = "$Id$";
     164#include "my-stuff.h"
     165#include "mondostructures.h"
     166#include "libmondo-cli-EXT.h"
     167#include "libmondo.h"
    170168
    171169extern int g_loglevel;
    172170extern bool g_text_mode;
    173 extern bool g_skip_floppies;    ///< Whether to skip the creation of boot disks
     171bool g_skip_floppies;   ///< Whether to skip the creation of boot disks
    174172extern char g_startdir[MAX_STR_LEN];    ///< ????? @bug ?????
    175173extern bool g_sigpipe;
     174extern char *MONDO_OPTIONS;
    176175
    177176/*@ file pointer **************************************************/
     
    190189
    191190extern void setup_tmpdir(char *path);
    192 
    193 /**
    194  * Whether we're restoring from ISOs. Obviously not, since this is the
    195  * backup program.
    196  * @note You @b MUST declare this variable somewhere in your program if
    197  * you use libmondo. Otherwise the link will fail.
    198  * @ingroup globalGroup
    199  */
    200 bool g_ISO_restore_mode = FALSE;
    201 
    202 
    203191extern double g_kernel_version;
    204192extern int g_current_media_number;
     
    208196/* Do we use extended attributes and acl ?
    209197 * By default no, use --acl & --attr options to force their usage */
    210 char *g_getfacl = NULL;
    211 char *g_getfattr = NULL;
     198extern char *g_getfacl;
     199extern char *g_getfattr;
    212200
    213201/* Reference to global bkpinfo */
     
    239227
    240228    tmp = malloc(9*MAX_STR_LEN);
    241     sensibly_set_tmpdir_and_scratchdir();
    242229    for (i = 0; i < 128; i++) {
    243230        flag_val[i][0] = '\0';
     
    378365    if (flag_set['K']) {
    379366        g_loglevel = atoi(flag_val['K']);
     367            log_msg(1,"Loglevel forced to %s",g_loglevel);
    380368        if (g_loglevel < 3) {
    381369            g_loglevel = 3;
     
    997985    }
    998986
    999     i = flag_set['O'] + flag_set['V'];
    1000     if (i == 0) {
    1001         retval++;
    1002         log_to_screen("Specify backup (-O), verify (-V) or both (-OV).\n");
     987    if ( ! bkpinfo->restore_data ) {
     988        i = flag_set['O'] + flag_set['V'];
     989        if (i == 0) {
     990            retval++;
     991            log_to_screen("Specify backup (-O), verify (-V) or both (-OV).\n");
     992        }
    1003993    }
    1004994
     
    10451035    }
    10461036    while ((opt =
    1047             getopt(argc, argv,
    1048                    "0123456789A:B:C:DE:FGHI:J:K:LNOP:QRS:T:UVWb:c:d:ef:gik:l:mn:op:rs:tuw:x:z"))
     1037            getopt(argc, argv, MONDO_OPTIONS))
    10491038           != -1) {
    10501039        if (opt == '?') {
Note: See TracChangeset for help on using the changeset viewer.