Remove unsupported autopkgtest needs-internet restriction on bionic
authorChristoph Berg <myon@debian.org>
Mon, 6 Sep 2021 20:39:58 +0000 (22:39 +0200)
committerChristoph Berg <myon@debian.org>
Mon, 6 Sep 2021 20:40:28 +0000 (22:40 +0200)
jenkins/generate-pgdg-source

index 746063ea2f9f31f2fd16fc7438eb20b556d538de..210b6c7de964ec5d470ddb582a00946d9c31ee1a 100755 (executable)
@@ -3,7 +3,7 @@
 # The MIT License
 #
 # Copyright (c) 2011,2012 by Michael Prokop <mika@debian.org>
-# Copyright (c) 2012-2020 by Christoph Berg <myon@debian.org>
+# Copyright (c) 2012-2021 by Christoph Berg <myon@debian.org>
 #
 # Permission is hereby granted, free of charge, to any person obtaining a copy
 # of this software and associated documentation files (the "Software"), to deal
@@ -232,6 +232,15 @@ case $PACKAGE in
     ;;
 esac
 
+# remove unsupported autopkgtest restrictions
+case $distribution in bionic)
+  if test -f debian/tests/control && grep needs-internet debian/tests/control; then
+    sed -i -e 's/\(, \)\?needs-internet//' debian/tests/control
+    TWEAK+=("Remove needs-internet from debian/tests/control.")
+  fi
+  ;;
+esac
+
 # use ~ in version number for backport-style packages
 case $PACKAGE in
   autopkgtest|cl-*|dh-exec|django-*|pkg-perl-tools|python-*|flask-*|sfcgal|speaklater)