chiark / gitweb /
approval works
[ypp-sc-tools.main.git] / pctb / convert.c
index 61901a5924854c967d9fc981a63406d6af89f66d..950300b588d1cc7e1e7fe9afc5409f0c4084c8d2 100644 (file)
@@ -82,6 +82,9 @@ static void open_screenshot_file(const char *mode) {
   if (!screenshot_file)
     fatal("could not open screenshots file `%s': %s",
          o_screenshot_fn, strerror(errno));
+
+  if ((o_flags & ff_upload) && !(o_flags & ff_testservers))
+    badusage("must not reuse screenshots for upload to live PCTB database");
 }
 
 static void run_analysis(void) {
@@ -124,6 +127,8 @@ void fetch_with_rsync(const char *stem) {
     const char *src= getenv("YPPSC_PCTB_DICT_UPDATE");
     char *remote= masprintf("%s/master-%s.txt", src, stem);
     char *local= masprintf("#master-%s#.txt", stem);
+    if (DEBUGP(rsync))
+      fprintf(stderr,"executing rsync to fetch %s to %s\n",remote,local);
     execlp(rsync, "rsync",
           DEBUGP(rsync) ? "-vLt" : "-Lt",
           "--",remote,local,(char*)0);