projects
/
platform
/
upstream
/
libzypp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported Upstream version 16.3.2
[platform/upstream/libzypp.git]
/
zypp
/
parser
/
ServiceFileReader.cc
diff --git
a/zypp/parser/ServiceFileReader.cc
b/zypp/parser/ServiceFileReader.cc
index
e814dac
..
0f841a7
100644
(file)
--- a/
zypp/parser/ServiceFileReader.cc
+++ b/
zypp/parser/ServiceFileReader.cc
@@
-72,6
+72,10
@@
namespace zypp
service.setAutorefresh( str::strToTrue( it->second ) );
else if ( it->first == "type" )
service.setType( repo::ServiceType(it->second) );
service.setAutorefresh( str::strToTrue( it->second ) );
else if ( it->first == "type" )
service.setType( repo::ServiceType(it->second) );
+ else if ( it->first == "ttl_sec" )
+ service.setTtl( str::strtonum<Date::Duration>(it->second) );
+ else if ( it->first == "lrf_dat" )
+ service.setLrf( Date( it->second ) );
else if ( it->first == "repostoenable" )
{
std::vector<std::string> aliases;
else if ( it->first == "repostoenable" )
{
std::vector<std::string> aliases;