projects
/
platform
/
upstream
/
libzypp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
276588c
)
fix rpm timestamp, detected by michael-g++
author
Duncan Mac-Vicar P
<dmacvicar@suse.de>
Mon, 23 Oct 2006 09:27:44 +0000
(09:27 +0000)
committer
Duncan Mac-Vicar P
<dmacvicar@suse.de>
Mon, 23 Oct 2006 09:27:44 +0000
(09:27 +0000)
zypp/target/rpm/RpmDb.cc
patch
|
blob
|
history
diff --git
a/zypp/target/rpm/RpmDb.cc
b/zypp/target/rpm/RpmDb.cc
index
10bd618
..
f23ab68
100644
(file)
--- a/
zypp/target/rpm/RpmDb.cc
+++ b/
zypp/target/rpm/RpmDb.cc
@@
-288,10
+288,17
@@
namespace zypp
Date RpmDb::timestamp() const
{
Date ts_rpm;
- PathInfo rpmdb_info(root() + "/var/lib/rpm/Packages");
+
+ Pathname db_path;
+ if ( dbPath().empty() )
+ db_path = "/var/lib/rpm";
+ else
+ db_path = dbPath();
+
+ PathInfo rpmdb_info(root() + db_path + "/Packages");
if ( rpmdb_info.isExist() )
-
ts_rpm =
rpmdb_info.mtime();
+
return
rpmdb_info.mtime();
else
return Date::now();
}