Imported Upstream version 14.45.0
[platform/upstream/libzypp.git] / zypp / ProvideFilePolicy.cc
1 /*---------------------------------------------------------------------\
2 |                          ____ _   __ __ ___                          |
3 |                         |__  / \ / / . \ . \                         |
4 |                           / / \ V /|  _/  _/                         |
5 |                          / /__ | | | | | |                           |
6 |                         /_____||_| |_| |_|                           |
7 |                                                                      |
8 \---------------------------------------------------------------------*/
9
10 #include <iostream>
11 #include <fstream>
12 #include <sstream>
13 #include "zypp/base/Logger.h"
14
15 #include "zypp/ProvideFilePolicy.h"
16
17 using std::endl;
18
19 ///////////////////////////////////////////////////////////////////
20 namespace zypp
21 { /////////////////////////////////////////////////////////////////
22   ///////////////////////////////////////////////////////////////////
23   //
24   //    CLASS NAME : ProvideFilePolicy
25   //
26   ///////////////////////////////////////////////////////////////////
27
28   bool ProvideFilePolicy::progress( int value ) const
29   {
30     if ( _progressCB )
31       return _progressCB( value );
32     return true;
33   }
34
35 } // namespace zypp
36 ///////////////////////////////////////////////////////////////////