]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
Merge topic branch t/afs-select into master
authorAndre Noll <maan@tuebingen.mpg.de>
Sat, 21 Oct 2023 16:56:48 +0000 (18:56 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Sat, 21 Oct 2023 16:58:22 +0000 (18:58 +0200)
A single patch which silences the select command. The merge conflicted
in afs.c, but that was trivial to resolve.

* refs/heads/t/afs-select:
  server: Implement select -verbose.

1  2 
NEWS.md
afs.c
m4/lls/server_cmd.suite.m4
mood.c

diff --cc NEWS.md
index 22816b1911a7613a233481df0ff4ac7e07bb6a81,598db71fae93734158509fa5f76853ceb09ccb7b..aa515e5af091eb23f266549a0cd33e974f993972
+++ b/NEWS.md
@@@ -1,24 -1,6 +1,27 @@@
  NEWS
  ====
  
 +----------------------------------------------
 +0.7.3 (to be announced) "weighted correctness"
 +----------------------------------------------
 +
 +- Old style PEM keys are now deprecated. They still work but their
 +  use results in a run-time warning. The removal of PEM key support is
 +  scheduled for paraslash-0.8.0.
 +- Version 1.0 of the openssl library has been deprecated. A warning
 +  is printed at compile-time on systems which have this outdated version
 +  because it will no longer be supported once paraslash-0.8.0 comes out.
 +- A spring cleanup for the senescent code in fd.c.
 +- The --admissible option of the ls command now takes an optional
 +  argument. When invoked like --admissible=m/foo, only files which are
 +  admissible with respect to mood foo are listed.
++- The select server command is now quiet by default, The new --verbose
++  option can be used to show information about the newly loaded mood
++  or playlist.
 +
 +Downloads:
 +[tarball](./releases/paraslash-git.tar.xz)
 +
  -------------------------------------
  0.7.2 (2023-03-08) "optical friction"
  -------------------------------------
diff --cc afs.c
index 3083084c25ac793cfd3a5cad1f93c6e78f0fa413,cb3ead27e55d43df0d7230f2ca404499439348ec..445d5871097b79cdcd14170c2a1f59998354dc98
--- 1/afs.c
--- 2/afs.c
+++ b/afs.c
@@@ -974,12 -985,14 +975,14 @@@ static int com_select_callback(struct a
        ret = lls_deserialize_parse_result(aca->query.data, cmd, &aca->lpr);
        assert(ret >= 0);
        arg = lls_input(0, aca->lpr);
+       pbout = SERVER_CMD_OPT_GIVEN(SELECT, VERBOSE, aca->lpr)?
+               &aca->pbout : NULL;
        score_clear();
        if (current_play_mode == PLAY_MODE_MOOD)
 -              mood_unload();
 +              mood_unload(NULL);
        else
 -              playlist_unload();
 +              playlist_unload(NULL);
-       ret = activate_mood_or_playlist(arg, &aca->pbout);
+       ret = activate_mood_or_playlist(arg, pbout);
        if (ret >= 0)
                goto free_lpr;
        /* ignore subsequent errors (but log them) */
Simple merge
diff --cc mood.c
Simple merge