Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
meta-elphel393
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
meta-elphel393
Commits
7e4fcd31
Commit
7e4fcd31
authored
Jul 25, 2016
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
check if version file exists
parent
f3c5db5d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
elphel-misc.bbclass
classes/elphel-misc.bbclass
+4
-0
No files found.
classes/elphel-misc.bbclass
View file @
7e4fcd31
...
@@ -2,6 +2,10 @@
...
@@ -2,6 +2,10 @@
# returns string - based on file
# returns string - based on file
def version_update(path,file,evr):
def version_update(path,file,evr):
import os.path
if not os.path.exists(path+'/'+file):
return 0
for line in open(path+'/'+file):
for line in open(path+'/'+file):
line = line.strip()
line = line.strip()
if (line[0]!="#"):
if (line[0]!="#"):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment