prt-get: print a short summary before installing a package
git-svn-id: https://crux.nu/svn/tools/prt-get/trunk@1253 0b5ae1c7-2405-0410-a7fc-ba219f786e1e
This commit is contained in:
parent
1d34eefd93
commit
5d2ed145c1
@ -199,6 +199,17 @@ InstallTransaction::installPackage( const Package* package,
|
|||||||
commandName = "prt-cache";
|
commandName = "prt-cache";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// - initial information about the package to be build
|
||||||
|
string message;
|
||||||
|
message = commandName + ": ";
|
||||||
|
if (update) {
|
||||||
|
message += "updating ";
|
||||||
|
} else {
|
||||||
|
message += "installing ";
|
||||||
|
}
|
||||||
|
message += package->path() + "/" + package->name();
|
||||||
|
cout << message << endl;
|
||||||
|
|
||||||
if ( m_config->writeLog() ) {
|
if ( m_config->writeLog() ) {
|
||||||
logFile = m_config->logFilePattern();
|
logFile = m_config->logFilePattern();
|
||||||
if ( logFile == "" ) {
|
if ( logFile == "" ) {
|
||||||
@ -236,6 +247,9 @@ InstallTransaction::installPackage( const Package* package,
|
|||||||
return LOG_FILE_FAILURE;
|
return LOG_FILE_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
write( fdlog, message.c_str(), message.length());
|
||||||
|
write( fdlog, "\n", 1);
|
||||||
|
|
||||||
time_t startTime;
|
time_t startTime;
|
||||||
time(&startTime);
|
time(&startTime);
|
||||||
timestamp = ctime(&startTime);
|
timestamp = ctime(&startTime);
|
||||||
|
Loading…
Reference in New Issue
Block a user