[Git][haskell-team/dh-haskell][history] Use explicit glob() function to avoid confusion with file input, per perlcritic.

Felix Lechner (@lechner) gitlab at salsa.debian.org
Tue Mar 1 22:36:31 GMT 2022



Felix Lechner pushed to branch history at Debian Haskell Group / dh-haskell


Commits:
808e0501 by Felix Lechner at 2022-03-01T13:21:01-08:00
Use explicit glob() function to avoid confusion with file input, per perlcritic.

- - - - -


1 changed file:

- lib/Debian/Debhelper/Buildsystem/haskell.pm


Changes:

=====================================
lib/Debian/Debhelper/Buildsystem/haskell.pm
=====================================
@@ -1,7 +1,7 @@
 # A Debhelper build system for cabalized Haskell packages.
 #
 # Copyright © 2015  Bogatov Dmitry <KAction at gnu.org>
-# Copyright © 2021  Felix Lechner
+# Copyright © 2021-2022  Felix Lechner
 #
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -69,7 +69,7 @@ sub check_auto_buildable {
     my $sourcedir = $self->get_sourcedir;
 
     return 1
-      if <$sourcedir/*.cabal>;
+      if glob('$sourcedir/*.cabal');
 
     return 0;
 }



View it on GitLab: https://salsa.debian.org/haskell-team/dh-haskell/-/commit/808e050156c8264d6ca5e59dd4bad9427e71bfe0

-- 
View it on GitLab: https://salsa.debian.org/haskell-team/dh-haskell/-/commit/808e050156c8264d6ca5e59dd4bad9427e71bfe0
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-haskell-commits/attachments/20220301/399405d1/attachment.htm>


More information about the Pkg-haskell-commits mailing list