respect -fr (forceRebuild) even if built package is newer than Pkgfile
This commit is contained in:
parent
a073423a89
commit
1287e9920d
@ -334,7 +334,9 @@ const {
|
||||
stat((portdir + "/Pkgfile").c_str(), &fstatData) == 0) {
|
||||
time_t pkgMtime = statData.st_mtime;
|
||||
time_t pfMtime = fstatData.st_mtime;
|
||||
if ( difftime(pkgMtime,pfMtime) > 0 ) { cmd = "/bin/true"; }
|
||||
if ( ( difftime(pkgMtime,pfMtime) > 0 ) and
|
||||
(parser->pkgmkArgs().find("-fr") == string::npos) ) {
|
||||
cmd = "/bin/true"; }
|
||||
}
|
||||
|
||||
string args = "-d " + parser->pkgmkArgs();
|
||||
@ -378,7 +380,7 @@ const {
|
||||
if (update) {
|
||||
string from = m_pkgDB->getPackageVersion(package->name());
|
||||
string to = m_repo->getPackageVersion(package->name());
|
||||
if (from == to) {
|
||||
if (from == to) {
|
||||
summary = commandName + ": " + "reinstalling " +
|
||||
package->name() + " " + to;
|
||||
} else {
|
||||
@ -463,6 +465,9 @@ bool InstallTransaction::calculateDependencies()
|
||||
const Package* package = it->second;
|
||||
if ( package ) {
|
||||
checkDependencies( false, package );
|
||||
} else {
|
||||
m_missingPackages.
|
||||
push_back( make_pair( it->first, string("") ) );
|
||||
}
|
||||
}
|
||||
list<int> indexList;
|
||||
|
@ -950,7 +950,7 @@ void PrtGet::evaluateResult( InstallTransaction& transaction,
|
||||
}
|
||||
|
||||
const list<string>& already = transaction.alreadyInstalledPackages();
|
||||
if ( already.size() && ! m_parser->depSort() ) {
|
||||
if ( already.size() ) {
|
||||
cout << endl << "-- Packages installed before this run (ignored)"
|
||||
<< endl;
|
||||
list<string>::const_iterator ait = already.begin();
|
||||
@ -1034,7 +1034,7 @@ void PrtGet::evaluateResult( InstallTransaction& transaction,
|
||||
|
||||
cout << endl;
|
||||
|
||||
if ( errors == 0 && !interrupted ) {
|
||||
if ( inst.size() && errors == 0 && !interrupted ) {
|
||||
cout << "prt-get: install successful." << endl;
|
||||
} else {
|
||||
m_returnValue = PG_PARTIAL_INSTALL_ERROR;
|
||||
|
Loading…
Reference in New Issue
Block a user