Compare commits
4 Commits
next
...
version/20
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2b4e5a71df | ||
|
|
97be1556e2 | ||
|
|
e084bd89e7 | ||
|
|
cfe9ddc2de |
@@ -168,10 +168,10 @@ logstream& sglog();
|
||||
do { if(sglog().would_log(C,P)) { \
|
||||
std::ostringstream os; os << M; \
|
||||
sglog().log(C, P, __FILE__, __LINE__, os.str()); \
|
||||
if (P == SG_POPUP) sglog().popup(os.str()); \
|
||||
if ((P) == SG_POPUP) sglog().popup(os.str()); \
|
||||
} } while(0)
|
||||
#ifdef FG_NDEBUG
|
||||
# define SG_LOG(C,P,M) do { if(P == SG_POPUP) SG_LOGX(C,P,M) } while(0)
|
||||
# define SG_LOG(C,P,M) do { if((P) == SG_POPUP) SG_LOGX(C,P,M) } while(0)
|
||||
#else
|
||||
# define SG_LOG(C,P,M) SG_LOGX(C,P,M)
|
||||
#endif
|
||||
|
||||
@@ -152,6 +152,11 @@ protected:
|
||||
return;
|
||||
}
|
||||
|
||||
// disable caching on the owner's path, otherwise the upcoming
|
||||
// delete & rename confuse everything
|
||||
m_owner->m_path.set_cached(false);
|
||||
m_extractPath.set_cached(false);
|
||||
|
||||
if (m_owner->path().exists()) {
|
||||
Dir destDir(m_owner->path());
|
||||
destDir.remove(true /* recursive */);
|
||||
|
||||
@@ -477,7 +477,7 @@ void Root::installProgress(InstallRef aInstall, unsigned int aBytes, unsigned in
|
||||
|
||||
void Root::startNext(InstallRef aCurrent)
|
||||
{
|
||||
if (d->updateDeque.front() != aCurrent) {
|
||||
if (d->updateDeque.empty() || (d->updateDeque.front() != aCurrent)) {
|
||||
SG_LOG(SG_GENERAL, SG_ALERT, "current install of package not head of the deque");
|
||||
} else {
|
||||
d->updateDeque.pop_front();
|
||||
|
||||
Reference in New Issue
Block a user