Bug#354945: bashisms in the maintainer scripts

2006-03-19 Thread gregor herrmann
tags 354945 + patch
thanks

On Thu, Mar 02, 2006 at 11:30:21AM +0100, Marco d'Itri wrote:

 Statements like [ $1 == configure ] are invalid and should be
 replaced with [ $1 = configure ].

The attached patch fixes theses errors (and the old FSF address).
There still remain some other lintian/linda errors/warnings though
...

HTH,
gregor
 
-- 
 .''`.   http://info.comodo.priv.at/ | gpg key ID: 0x00F3CFE4
 : :' :  infos zur usenet-hierarchie at.*: http://www.usenet.at/
 `. `'   member of https://www.vibe.at/ | how to reply: http://got.to/quote/
   `-NP: Ryan Adams: Chin Up, Cheer Up
diff -urN postfix-policyd-1.70.old/debian/copyright 
postfix-policyd-1.70/debian/copyright
--- postfix-policyd-1.70.old/debian/copyright   2006-03-19 22:13:21.0 
+0100
+++ postfix-policyd-1.70/debian/copyright   2006-03-19 22:18:23.0 
+0100
@@ -16,10 +16,9 @@
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
 
-   You should have received a copy of the GNU General Public License
-   along with this package; if not, write to the Free Software
-   Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
-   02111-1307, USA.
+   You should have received a copy of the GNU General Public License along
+   with this package; if not, write to the Free Software Foundation, Inc.,
+   51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
 
 On Debian systems, the complete text of the GNU General
 Public License can be found in `/usr/share/common-licenses/GPL'.
diff -urN postfix-policyd-1.70.old/debian/postfix-policyd.postinst 
postfix-policyd-1.70/debian/postfix-policyd.postinst
--- postfix-policyd-1.70.old/debian/postfix-policyd.postinst2006-03-19 
22:13:21.0 +0100
+++ postfix-policyd-1.70/debian/postfix-policyd.postinst2006-03-19 
22:16:40.0 +0100
@@ -2,7 +2,7 @@
 
 set -e
 
-if [ $1 == configure ]; then
+if [ $1 = configure ]; then
 . /usr/share/debconf/confmodule
 . /usr/share/dbconfig-common/dpkg/postinst.mysql 
 dbc_first_version=1.70-1
diff -urN postfix-policyd-1.70.old/debian/postfix-policyd.postrm 
postfix-policyd-1.70/debian/postfix-policyd.postrm
--- postfix-policyd-1.70.old/debian/postfix-policyd.postrm  2006-03-19 
22:13:21.0 +0100
+++ postfix-policyd-1.70/debian/postfix-policyd.postrm  2006-03-19 
22:16:49.0 +0100
@@ -2,7 +2,7 @@
 
 set -e
 
-if [ $1 == purge ]; then
+if [ $1 = purge ]; then
 for ext in '~' '%' .bak .dpkg-tmp .dpkg-new .dpkg-old .dpkg-dist;  do
 rm -f /etc/postfix-policyd.conf$ext
 done


signature.asc
Description: Digital signature


Bug#354945: bashisms in the maintainer scripts

2006-03-02 Thread Marco d'Itri
Package: postfix-policyd
Version: 1.70-2
Severity: serious

Statements like [ $1 == configure ] are invalid and should be
replaced with [ $1 = configure ].

-- 
ciao,
Marco


signature.asc
Description: Digital signature