]> git.sur5r.net Git - bacula/bacula/commitdiff
Make Bacula build without Python
authorKern Sibbald <kern@sibbald.com>
Mon, 18 Apr 2005 11:52:34 +0000 (11:52 +0000)
committerKern Sibbald <kern@sibbald.com>
Mon, 18 Apr 2005 11:52:34 +0000 (11:52 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1935 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/kernstodo
bacula/src/filed/python.c
bacula/src/findlib/bfile.c
bacula/src/stored/python.c

index 3e97c0ef4756b974c2128416f74df9d2adae81a6..d8ef55de0dc7ec64028e3da9922308969c30af03 100644 (file)
@@ -28,6 +28,8 @@ Autochangers:
      all Volumes from other drives.  "update slots all-drives"?
   
 For 1.37:
+- Make a callback when Rerun failed levels is called.
+- Give Python program access to Scheduled jobs.
 - Implement some way to turn off automatic pruning in Jobs.
 - Implement a way an Admin Job can prune, possibly multiple
   clients -- Python script?
@@ -1302,4 +1304,3 @@ Block Position: 0
   - Solicit Events
 - Add disk seeking on restore; turn off seek on tapes.
   stored/match_bsr.c
-
index c63a7c4c1c0e05a285aa15041188318dacc19034..ea7c0cdb6dc3a3c25057a6c87c4ef882f032e10f 100644 (file)
@@ -214,4 +214,11 @@ int generate_job_event(JCR *jcr, const char *event)
    return 1;
 }
 
+#else
+
+/* Dummy if Python not configured */
+int generate_job_event(JCR *jcr, const char *event)
+{ return 1; }
+
+
 #endif /* HAVE_PYTHON */
index 3ddc1d88bbe2508d6556152ba0ac1513ecf253d9..64231a5594ec526924020e6c167b33bdf8feddc4 100644 (file)
@@ -454,15 +454,18 @@ bool is_portable_backup(BFILE *bfd)
 
 bool set_prog(BFILE *bfd, char *prog, JCR *jcr)
 {
+#ifdef HAVE_PYTHON
    if (bfd->prog && strcmp(prog, bfd->prog) == 0) {
       return true;                    /* already setup */
    }
+
    int stat = generate_job_event(jcr, "Reader");
    if (stat == 1 && bfd->pio.fo && bfd->pio.fr && bfd->pio.fc) {
       bfd->prog = prog;
       bfd->jcr = jcr;
       return true;
    }
+#endif
    bfd->prog = NULL;
    return false;
 
index ea40ba4dfcad735d1fc6b3f5c7a5e0cc717e61fa..00e95f78ad2c0ee21bf22311a2746e19559c2876 100644 (file)
@@ -197,4 +197,11 @@ int generate_job_event(JCR *jcr, const char *event)
    return 1;
 }
 
+#else
+
+/* Dummy if Python not configured */
+int generate_job_event(JCR *jcr, const char *event)
+{ return 1; }
+
+
 #endif /* HAVE_PYTHON */