"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Tardis/__init__.py" between
Tardis-1.0.4.tar.gz and Tardis-1.0.5.tar.gz

About: Tardis is a system for making encrypted, incremental backups of filesystems.

__init__.py  (Tardis-1.0.4):__init__.py  (Tardis-1.0.5)
skipping to change at line 32 skipping to change at line 32
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE. # POSSIBILITY OF SUCH DAMAGE.
import os import os
import sys
__version__ = "1.0.4" v = sys.version_info
__version__ = "1.0.5"
__buildversion__ = '' __buildversion__ = ''
__versionstring__ = __version__ __pythonversion__ = " Python %d.%d.%d" % (v.major, v.minor, v.micro)
__versionstring__ = __version__ + '(' + __pythonversion__ + ')'
try: try:
parentDir = os.path.dirname(os.path.dirname(os.path.realpath(__file__))) parentDir = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
versionFile = os.path.join(parentDir, 'info', 'tardisversion') versionFile = os.path.join(parentDir, 'info', 'tardisversion')
__buildversion__ = file(versionFile, 'r').readline().strip() __buildversion__ = file(versionFile, 'r').readline().strip()
except: except:
try: try:
import subprocess import subprocess
__buildversion__ = subprocess.check_output(['git', 'describe', '--dirty' , '--tags', '--always'], stderr=subprocess.STDOUT).strip() __buildversion__ = subprocess.check_output(['git', 'describe', '--dirty' , '--tags', '--always'], stderr=subprocess.STDOUT).strip()
except: except:
pass pass
if __buildversion__: if __buildversion__:
__versionstring__ = __version__ + ' (' + __buildversion__ + ')' __versionstring__ = __version__ + ' (' + str(__buildversion__) + __pythonver sion__ + ')'
def check_features(): def check_features():
xattr_pkg = 'xattr' xattr_pkg = 'xattr'
acl_pkg = 'pylibacl' acl_pkg = 'pylibacl'
os_info = os.uname() os_info = os.uname()
if os_info[0] == 'Linux': if os_info[0] == 'Linux':
return [xattr_pkg, acl_pkg] return [xattr_pkg, acl_pkg]
elif os_info[0] == 'Darwin': elif os_info[0] == 'Darwin':
return [xattr_pkg] return [xattr_pkg]
else: else:
 End of changes. 4 change blocks. 
3 lines changed or deleted 7 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)