[Pkg-owncloud-commits] [python-owncloud] 70/96: whatever
Sandro Knauß
hefee-guest at moszumanska.debian.org
Fri Nov 22 01:28:29 UTC 2013
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch master
in repository python-owncloud.
commit 2d562d5ee11261c83d0079b76a89f2658ff4bd4e
Author: Craig <csawyer at yumaed.org>
Date: Wed Apr 3 12:55:52 2013 -0700
whatever
---
csync/version.dat | 2 +-
csync/version.py | 9 +++------
2 files changed, 4 insertions(+), 7 deletions(-)
diff --git a/csync/devel b/csync/devel
deleted file mode 100644
index e69de29..0000000
diff --git a/csync/version.dat b/csync/version.dat
index 4ed816b..9e8455a 100644
--- a/csync/version.dat
+++ b/csync/version.dat
@@ -1 +1 @@
-{"head": "5c32717e4b3770da29c4ba61004be2e0239c2616", "float": 0.2, "string": "0.2"}
\ No newline at end of file
+{"head": "5e74a46096b4b10e8da324680f5e283cde0f6b25", "float": 0.2, "string": "0.2"}
\ No newline at end of file
diff --git a/csync/version.py b/csync/version.py
index d21a980..ba018bb 100644
--- a/csync/version.py
+++ b/csync/version.py
@@ -88,7 +88,7 @@ class gitVersion(ver):
"""if git is around, return the current version and save it.
otherwise return the saved copy, or 00 if not already saved.
"""
- gitdir = os.path.join(os.path.dirname(os.path.abspath(self.verfile)),'.git')
+ gitdir = os.path.join(os.path.dirname(os.path.abspath(self.verfile)),'..','.git')
if not os.path.exists(gitdir):
return '00'
cmd = 'git rev-parse --verify HEAD'.split()
@@ -114,15 +114,12 @@ class gitVersion(ver):
return self.getHeadVersion()
BASE_DIR = os.path.abspath(os.path.dirname(__file__))
-if os.path.exists(os.path.join(BASE_DIR, 'devel')):
- version = gitVersion(os.path.join(BASE_DIR, 'version.dat'))
-else:
- version = ver(os.path.join(BASE_DIR, 'version.dat'))
+version = gitVersion(os.path.join(BASE_DIR, 'version.dat'))
if __name__ == '__main__':
print 'Testing version.'
- v = hgVersion()
+ v = version
print 'dict:', v.version
print 'string:', v.asString
print 'float:', v.asFloat
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/python-owncloud.git
More information about the Pkg-owncloud-commits
mailing list