Changeset 5027600


Ignore:
Timestamp:
01/15/15 09:34:57 (8 months ago)
Author:
Ken Moore <ken@…>
Branches:
master, enter/10, releng/10.1.1, releng/10.1.2, releng/10.2
Children:
e6b7b7d, 3a6bc51
Parents:
b64875e
Message:

Quick fix for syscache: need to use the jail ID number, not the name, when checking for updates inside a jail.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-sh/syscache/daemon/DB.cpp

    rec4ba61d r5027600  
    858858  if(stopping){ return; } 
    859859  QString cmd = "pkg upgrade -n"; 
    860   if(jail!=LOCALSYSTEM){ cmd = "pkg -j "+jail+" upgrade -n"; } 
     860  if(jail!=LOCALSYSTEM){ cmd = "pkg -j "+HASH->value("Jails/"+jail+"/JID")+" upgrade -n"; } 
    861861  QString log = directSysCmd(cmd).join("<br>"); 
    862862  HASH->insert("Jails/"+jail+"/updateLog", log); 
Note: See TracChangeset for help on using the changeset viewer.