File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -25,14 +25,16 @@ for module in "${modules[@]}"; do
25
25
echo " *** Missing header: $header for sipfile $sipfile "
26
26
else
27
27
outdiff=$( ./scripts/sipify.pl -p python/${module} /auto_additions/${pyfile} .temp $header | diff python/$sipfile .in -)
28
- outdiff2=$( diff python/${module} /auto_additions/${pyfile} python/${module} /auto_additions/${pyfile} .temp)
29
28
if [[ -n " $outdiff " ]]; then
30
29
echo " *** SIP file not up to date: $sipfile "
31
30
code=1
32
31
fi
33
- if [[ -n " $outdiff2 " ]]; then
34
- echo " *** Python addition file not up to date: $sipfile "
35
- code=1
32
+ if [[ -f python/${module} /auto_additions/${pyfile} .temp ]]; then
33
+ outdiff2=$( diff python/${module} /auto_additions/${pyfile} python/${module} /auto_additions/${pyfile} .temp)
34
+ if [[ -n " $outdiff2 " ]]; then
35
+ echo " *** Python addition file not up to date: $sipfile "
36
+ code=1
37
+ fi
36
38
fi
37
39
fi
38
40
done < <(
You can’t perform that action at this time.
0 commit comments