openbsd-ports/sysutils/nut/patches/patch-tools_nut-usbinfo_pl
2014-04-21 11:41:11 +00:00

16 lines
553 B
Plaintext

$OpenBSD: patch-tools_nut-usbinfo_pl,v 1.3 2014/04/21 11:41:11 sthen Exp $
skip backup copy of patched files
--- tools/nut-usbinfo.pl.orig Thu Feb 27 21:17:32 2014
+++ tools/nut-usbinfo.pl Mon Apr 21 11:51:56 2014
@@ -209,7 +209,7 @@ sub gen_usb_files
sub find_usbdevs
{
# maybe there's an option to turn off all .* files, but anyway this is stupid
- return $File::Find::prune = 1 if ($_ eq '.svn') || ($_ =~ /^\.#/);
+ return $File::Find::prune = 1 if ($_ eq '.svn') || ($_ =~ /^\.#/) || (m/.*\.orig/);
my $nameFile=$_;
my $lastComment="";