Bug#484372: apt-howto: patch attached for bashism in debian/rules

View: New views
1 Messages — Rating Filter:   Alert me  

Bug#484372: apt-howto: patch attached for bashism in debian/rules

by Serafeim Zanikolas :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Package: apt-howto
Followup-For: Bug #484372

Hi there,

I'm not experienced in fixing bashisms but I think that the attached patch
should do the trick.

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.25-1-686 (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=el_GR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

--- apt-howto-2.0.2.orig/debian/rules 2008-06-07 00:30:24.000000000 +0100
+++ apt-howto-2.0.2/debian/rules 2008-06-07 00:30:44.000000000 +0100
@@ -51,7 +51,7 @@
  dh_testroot
 
  for i in $$(ls debian/patches/*.patched); do \
- patch -p0 -R < $${i/.patched/}; \
+ patch -p0 -R < $$(echo $${i} | sed 's/.patched//');\
  done
 
  # code based on gnome-pkg-tools to auto create Uploaders field from
LightInTheBox - Buy quality products at wholesale price