1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-20 09:19:36 +01:00

dropEmptyInitThenConcatStringsSep -> concatStringSep: sigs are non-empty

The sigs field is produced by tokenizeStrings, which does not return
empty strings.
This commit is contained in:
Robert Hensing 2024-07-13 00:11:14 +02:00
parent 3f37785afd
commit 75dde71ff9
2 changed files with 9 additions and 5 deletions

View file

@ -7,6 +7,8 @@
#include <sqlite3.h>
#include <nlohmann/json.hpp>
#include "strings.hh"
namespace nix {
static const char * schema = R"sql(
@ -339,7 +341,7 @@ public:
(info->narSize)
(dropEmptyInitThenConcatStringsSep(" ", info->shortRefs()))
(info->deriver ? std::string(info->deriver->to_string()) : "", (bool) info->deriver)
(dropEmptyInitThenConcatStringsSep(" ", info->sigs))
(concatStringsSep(" ", info->sigs))
(renderContentAddress(info->ca))
(time(0)).exec();