mirror of
https://github.com/outbackdingo/sysadm.git
synced 2026-01-27 10:20:26 +00:00
Remove some comments from the pkg interface, and make sure the dispatcher sends out a full update when starting for the first time (in case the proc is a special subsystem process).
This commit is contained in:
@@ -48,6 +48,7 @@ void DProcess::startProc(){
|
||||
//setup internal connections
|
||||
connect(this, SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT(cmdFinished(int, QProcess::ExitStatus)) );
|
||||
connect(this, SIGNAL(error(QProcess::ProcessError)), this, SLOT(cmdError(QProcess::ProcessError)) );
|
||||
this->emit ProcUpdate(ID, proclog);
|
||||
}
|
||||
cCmd = cmds.takeFirst();
|
||||
success = false; //not finished yet
|
||||
|
||||
@@ -122,11 +122,9 @@ QJsonObject PKG::pkg_info(QStringList origins, QString repo, QString category, b
|
||||
}
|
||||
//ANNOTATIONS
|
||||
QSqlQuery q2("SELECT tag_id, value_id FROM pkg_annotation WHERE package_id = '"+id+"'");
|
||||
QStringList tags, vals;
|
||||
QStringList tags, vals; //both the value and the variable are id tags to entries in the annotations table.
|
||||
while(q2.next()){
|
||||
tags << q2.value("tag_id").toString(); vals << q2.value("value_id").toString();
|
||||
//include the annotations as base-level fields as well
|
||||
//info.insert( anno_from_id(q2.value("tag_id").toString()), anno_from_id(q2.value("value_id").toString()) );
|
||||
}
|
||||
if(!tags.isEmpty()){ annotations_from_ids(tags, vals, &info); }
|
||||
if(!fullresults){ retObj.insert(origin,info); continue; } //skip the rest of the info queries
|
||||
|
||||
Reference in New Issue
Block a user