ref: refs/heads/master
commit 27f5af8c70aad1b7f233225ca25a1a2a819dfd74
Author: Stefan Schubert
Date: Mon Feb 23 17:53:21 2009 +0100
added more testcase information
---
zypp/solver/detail/ResolverUpgrade.cc | 6 +++---
zypp/solver/detail/Testcase.cc | 2 ++
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/zypp/solver/detail/ResolverUpgrade.cc b/zypp/solver/detail/ResolverUpgrade.cc
index c0a8ec2..28c3579 100644
--- a/zypp/solver/detail/ResolverUpgrade.cc
+++ b/zypp/solver/detail/ResolverUpgrade.cc
@@ -86,12 +86,12 @@ Resolver::doUpgrade( UpgradeStatistics & opt_stats_r )
// create a testcase for the updating system
PathInfo path ("/mnt/var/log"); // checking if update has been started from instsys
-
+ std::string now( Date::now().form( "-%Y-%m-%d-%H-%M-%S" ) );
if ( !path.isExist() ) {
- Testcase testcase("/var/log/updateTestcase");
+ Testcase testcase("/var/log/updateTestcase"+now);
testcase.createTestcase (*this, true, false); // create pool, do not solve
} else {
- Testcase testcase("/mnt/var/log/updateTestcase");
+ Testcase testcase("/mnt/var/log/updateTestcase"+now);
testcase.createTestcase (*this, true, false); // create pool, do not solve
}
diff --git a/zypp/solver/detail/Testcase.cc b/zypp/solver/detail/Testcase.cc
index b989320..175fb94 100644
--- a/zypp/solver/detail/Testcase.cc
+++ b/zypp/solver/detail/Testcase.cc
@@ -444,6 +444,8 @@ HelixControl::HelixControl(const std::string & controlPath,
}
*file << TAB << "- path : " << repo.path() << endl;
*file << TAB << "- type : " << repo.type() << endl;
+ *file << TAB << "- generated : " << (it->first.generatedTimestamp()).form( "%Y-%m-%d %H:%M:%S" ) << endl;
+ *file << TAB << "- outdated : " << (it->first.suggestedExpirationTimestamp()).form( "%Y-%m-%d %H:%M:%S" ) << endl;
*file << TAB << " -->" << endl;
*file << TAB << "first.id())
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org
For additional commands, e-mail: zypp-commit+help@opensuse.org