Skip to contentSkip to conversation

dev-manual: fix source release example script

PATCH In review Stefan Wiehler 2 participants 2 messages Aug 2, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dev-manual: fix source release example script

---
 documentation/dev-manual/common-tasks.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
documentation/dev-manual/common-tasks.rst +1 -1
index 5600076b7..77af03b3c 100644
@@ -10929,7 +10929,7 @@ concerned with GPL code as identified by running the following script:
          p=${p%-*}
          # Only archive GPL packages (update *GPL* regex for your license check)
          numfiles=`ls tmp/deploy/licenses/$p/*GPL* 2> /dev/null | wc -l`
-         if [ $numfiles -gt 1 ]; then
+         if [ $numfiles -ge 1 ]; then
             echo Archiving $p
             mkdir -p $src_release_dir/$p/source
             cp $d/* $src_release_dir/$p/source 2> /dev/null
Signature · 1 line
2.29.2
Reviewed-by on v1 1/1
#1 lore raw

Hi Stefan,

Quoted 10 lines · Stefan Wiehler
---
 documentation/dev-manual/common-tasks.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
documentation/dev-manual/common-tasks.rst +0 -0
index 5600076b7..77af03b3c 100644

documentation/dev-manual/common-tasks.rst concerned with GPL code as identified by running the following script: · line 10935

Quoted 8 lines
documentation/dev-manual/common-tasks.rst +1 -1
@@ -10929,7 +10929,7 @@ concerned with GPL code as identified by running the following script:
          p=${p%-*}
          # Only archive GPL packages (update *GPL* regex for your license check)
          numfiles=`ls tmp/deploy/licenses/$p/*GPL* 2> /dev/null | wc -l`
-         if [ $numfiles -gt 1 ]; then
+         if [ $numfiles -ge 1 ]; then
             echo Archiving $p
             mkdir -p $src_release_dir/$p/source
             cp $d/* $src_release_dir/$p/source 2> /dev/null

Good catch, thanks for the patch!

I merged it into the "master-next" branch of "yocto-docs", which is merged into "master" about once a week.

Thanks again,
Michael.

Signature · 3 lines
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com