Skip to content
GitLab
Explore
Sign in
Register
Commits on Source (4)
Update python3.patch to fix more issues.
· a335cec0
Bas Couwenberg
authored
Jul 26, 2019
a335cec0
Redirect STDERR correctly in tests control.
· 138bd0f0
Bas Couwenberg
authored
Jul 26, 2019
138bd0f0
Set distribution to unstable.
· 146bad41
Bas Couwenberg
authored
Jul 26, 2019
146bad41
Mark python3.patch as Forwarded.
· ead88fb3
Bas Couwenberg
authored
Jul 26, 2019
ead88fb3
Show whitespace changes
Inline
Side-by-side
debian/changelog
View file @
ead88fb3
doris (5.0.3~beta+dfsg-9)
UNRELEASED
; urgency=medium
doris (5.0.3~beta+dfsg-9)
unstable
; urgency=medium
* Team upload.
* Add patch to fix Python 3 support.
* Redirect STDERR correctly in tests control.
-- Bas Couwenberg <sebastic@debian.org>
Mon
, 2
2
Jul 2019
06:41:3
9 +0200
-- Bas Couwenberg <sebastic@debian.org>
Fri
, 2
6
Jul 2019
10:42:0
9 +0200
doris (5.0.3~beta+dfsg-8) unstable; urgency=medium
...
...
debian/patches/python3.patch
View file @
ead88fb3
Description: Fix support for Python 3.
Author: Bas Couwenberg <sebastic@debian.org>
Forwarded: https://github.com/TUDelftGeodesy/Doris/issues/8
--- a/bin/csk_dump_data.py
+++ b/bin/csk_dump_data.py
...
...
@@ -54,6 +55,41 @@ Author: Bas Couwenberg <sebastic@debian.org>
data = array('h')
data = sbi[:,:,:]
Number_of_lines_original = sbi.shape[0]
@@ -69,7 +69,7 @@
elif len(sys.argv) > 3 and len(sys.argv)
outputWinFirstPix = int(sys.argv[5])-1 # gdal srcwin starting at 0
outputWinLastPix = int(sys.argv[6]) # Lastpix --> yoff (later)
elif len(sys.argv) > 3 and len(sys.argv) < 7:
- print 'Unrecognized input'
+ print('Unrecognized input')
usage()
sys.exit(1)
else:
@@ -86,13 +86,13 @@
else:
# outputWinLastLine = Number_of_lines_original-1
# outputWinFirstPix = 0
# outputWinLastPix = Number_of_pixels_original-1
-# print 'crop parameters not provided,so cropping the whole image'
+# print('crop parameters not provided,so cropping the whole image')
if outputWinFirstLine == None or outputWinLastLine == None or outputWinFirstPix == None or outputWinLastPix == None :
- print '%s: running failed: crop size unknown !' % (sys.argv[0])
+ print('%s: running failed: crop size unknown !' % (sys.argv[0]))
sys.exit(1)
if outputWinLastLine-outputWinFirstLine+1 <0 or outputWinLastPix-outputWinFirstPix+1 <=0 :
- print '%s running failed: crop dimensions are not invalid !' % (sys.argv[0])
+ print('%s running failed: crop dimensions are not invalid !' % (sys.argv[0]))
sys.exit(1)
# compute crop dimensions
@@ -142,7 +142,7 @@
headerFileStream.write('END\n')
# check whether the resfile exist!!!
if resFile is not None:
- print resFile
+ print(resFile)
# load header
headerFileStream = open(os.path.splitext(outputFileName)[0]+'.hdr','r')
for line in headerFileStream:
--- a/bin/csk_dump_header2doris.py
+++ b/bin/csk_dump_header2doris.py
@@ -14,18 +14,18 @@
import numpy, h5py, sys, math, time, str
...
...
debian/tests/control
View file @
ead88fb3
Test-Command: doris -h
2>&1
> /dev/null
Test-Command: doris -h > /dev/null
2>&1
Depends: @