chiark / gitweb /
Merge branch 'stable-3.x'
authorIan Jackson <ian@liberator.relativity.greenend.org.uk>
Fri, 14 Aug 2009 19:17:55 +0000 (20:17 +0100)
committerIan Jackson <ian@liberator.relativity.greenend.org.uk>
Fri, 14 Aug 2009 19:17:55 +0000 (20:17 +0100)
yarrg/commod-update-receiver
yarrg/common.c
yarrg/convert.c
yarrg/dictionary-manager

index f114428..4ae267d 100755 (executable)
@@ -133,9 +133,10 @@ foreach my $mid (<_mid-*.hold>) {
     unlink $mid or $!==&ENOENT or die "$mid $!";
 }
 
+$o{'instance'}= $ENV{'YARRG_INSTANCE'};
 
 my $mcontent= MIME::Entity->build(To => 'yarrg-commod-updates',
-                                 Subject => $pwd,
+                                 Subject => $ENV{'YARRG_INSTANCE'},
                                  Type => 'multipart/mixed',
                                  Boundary => '=',
                                  'Message-ID' => $mid,
index f95e585..cc33235 100644 (file)
@@ -122,7 +122,7 @@ int gzopen(const char *zpath, int oflags, FILE **f_r, pid_t *pid_r,
           const char *gziplevel /* 0 for read; may be 0, or "-1" etc. */) {
 
   int zfd= open(zpath, oflags, 0666);
-  if (!zfd) return errno;
+  if (zfd<0) return errno;
 
   int pipefds[2];
   sysassert(! pipe(pipefds) );
index adccb1c..555eefe 100644 (file)
@@ -262,6 +262,7 @@ int main(int argc, char **argv) {
     else if (IS("--dict-read-only"))   o_flags &= (~ffs_dict | ff_dict_fetch);
     else if (IS("--dict-anon"))        o_flags &= ~ff_dict_pirate;
     else if (IS("--dict-submit"))      o_flags |= ff_dict_fetch|ff_dict_submit;
+    else if (IS("--dict-no-update"))   o_flags &= ~ff_dict_fetch; // testing
     else if (IS("--raw-tsv"))          outputmode(omk_raw,0);
     else if (IS("--upload"))           outputmode_uploads();
     else if (IS("--upload-yarrg"))     outputmode(omk_upload_yarrg,arg+2);
index c8e003d..623e07d 100755 (executable)
@@ -25,9 +25,9 @@
 # sponsored by Three Rings.
 
 
-# ./dictionary-manager --approve-updates ijackson@login.chiark.greenend.org.uk /home/ijackson/things/ypp-sc-tools.pctb-dict/pctb /home/ftp/users/ijackson/pctb
+# ./dictionary-manager --approve-updates ijackson@login.chiark.greenend.org.uk /home/ijackson/things/ypp-sc-tools.pctb-dict/yarrg /home/ftp/users/ijackson/yarrg
 
-# ./dictionary-manager --approve-updates ijackson@login.chiark.greenend.org.uk /home/ijackson/things/ypp-sc-tools.pctb-dict-test/pctb /home/ftp/users/ijackson/pctb/test
+# ./dictionary-manager --approve-updates ijackson@login.chiark.greenend.org.uk /home/ijackson/things/ypp-sc-tools.pctb-dict-test/yarrg /home/ftp/users/ijackson/yarrg/test
 
 # ./dictionary-manager --approve-updates '' . .