Skip to contentSkip to conversation

support/script/scancpan: don't generate the trailing slash in <PKG>_SITE variable

PATCH New Francois Perrad 2 participants 2 messages Aug 29, 2014 – Aug 30, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 support/script/scancpan: don't generate the trailing slash in <PKG>_SITE variable

The trailing slash was removed in all packages, so don't generate it.
See http://git.buildroot.net/buildroot/commit/?id=c7f4b964718bc5a3329bb730f59e24091ecbc7a2

---
 support/scripts/scancpan | 1 +
 1 file changed, 1 insertion(+)
support/scripts/scancpan +1 -0
index 50d9bab..e738a83 100755
@@ -636,6 +636,7 @@ while (my ($distname, $dist) = each %dist) {
         # the scheme is not used, because the job is done by the BR download infrastructure
         # the auth part is not used, because we use $(BR2_CPAN_MIRROR)
         my($filename, $directories, $suffix) = fileparse( $path, q{tar.gz}, q{tgz} );
+        $directories =~ s|/$||;
         my $dependencies = join q{ }, qw( = perl ),
                                       map( { q{host-} . fsname( $_ ); } sort @{$deps_build{$distname}} ),
                                       map( { fsname( $_ ); } sort @{$deps_runtime{$distname}} );
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/1 support/script/scancpan: don't generate the trailing slash in <PKG>_SITE variable

Quoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Francois" == Francois Perrad <[email protected]> writes:

The trailing slash was removed in all packages, so don't generate it.
See http://git.buildroot.net/buildroot/commit/?id=c7f4b964718bc5a3329bb730f59e24091ecbc7a2

Committed to next, thanks.

Signature · 1 line
Bye, Peter Korsgaard