diff options
author | Dan Goodliffe <dan.goodliffe@octal.co.uk> | 2022-03-31 10:00:29 +0100 |
---|---|---|
committer | Dan Goodliffe <dan.goodliffe@octal.co.uk> | 2022-03-31 10:00:29 +0100 |
commit | 9a094b875373e282f750f9121458d1a26acf19a6 (patch) | |
tree | 6eae99b05ed0d50b29eab457987a2cfa5d62741e | |
parent | Allow underscore in category names (diff) | |
download | gentoobrowse-api-9a094b875373e282f750f9121458d1a26acf19a6.tar.bz2 gentoobrowse-api-9a094b875373e282f750f9121458d1a26acf19a6.tar.xz gentoobrowse-api-9a094b875373e282f750f9121458d1a26acf19a6.zip |
Package description can be empty stringgentoobrowse-api-0.12.0.2
Which means it's omitted from the cache file, result in nullopt value; default this
to empty
-rw-r--r-- | gentoobrowse-api/service/maintenance/ebuildMetaProcessor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gentoobrowse-api/service/maintenance/ebuildMetaProcessor.cpp b/gentoobrowse-api/service/maintenance/ebuildMetaProcessor.cpp index 11cfcc2..441f46f 100644 --- a/gentoobrowse-api/service/maintenance/ebuildMetaProcessor.cpp +++ b/gentoobrowse-api/service/maintenance/ebuildMetaProcessor.cpp @@ -85,7 +85,7 @@ namespace Gentoo::Service { // Maybe create a package auto pi = sql::maintenance::packageInsert.modify(dbc); pi->bindParamS(0, packageName); - pi->bindParamS(1, ecp.get("DESCRIPTION")); + pi->bindParamS(1, ecp.getRange("DESCRIPTION").value_or("")); pi->bindParamS(2, packageName); pi->bindParamS(3, categoryName); pi->execute(); @@ -263,7 +263,7 @@ namespace Gentoo::Service { dbc->patchTable(&t); // Description auto u = sql::maintenance::packageDescUpdate.modify(dbc); - u->bindParamS(0, ecp.get("DESCRIPTION")); + u->bindParamS(0, ecp.getRange("DESCRIPTION").value_or("")); u->bindParamI(1, packageId); u->execute(); } |