public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] deb-dl-dir: Fix isar-apt packages checking on export
@ 2026-06-10  6:38 Anton Mikanovich
  2026-06-10  7:29 ` 'MOESSBAUER, Felix' via isar-users
  0 siblings, 1 reply; 3+ messages in thread
From: Anton Mikanovich @ 2026-06-10  6:38 UTC (permalink / raw)
  To: isar-users; +Cc: Anton Mikanovich

To use variable inside of lock section it should be exported.
Otherwize it will be empty and isar-apt packages checking logic will
not work.

Signed-off-by: Anton Mikanovich <amikan@ilbers.de>
---
 meta/classes-recipe/deb-dl-dir.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes-recipe/deb-dl-dir.bbclass b/meta/classes-recipe/deb-dl-dir.bbclass
index 620ddc96..fde4fc44 100644
--- a/meta/classes-recipe/deb-dl-dir.bbclass
+++ b/meta/classes-recipe/deb-dl-dir.bbclass
@@ -149,7 +149,7 @@ deb_dl_dir_export() {
     export owner=$(id -u):$(id -g)
     mkdir -p "${pc}"
 
-    isar_debs="$(${SCRIPTSDIR}/lockrun.py -r -f '${REPO_ISAR_DIR}/isar.lock' -c \
+    export isar_debs="$(${SCRIPTSDIR}/lockrun.py -r -f '${REPO_ISAR_DIR}/isar.lock' -c \
     "find '${REPO_ISAR_DIR}/${DISTRO}' -name '*.deb' -print")"
 
     flock "${pc}".lock sudo -Es << 'EOSUDO'
-- 
2.34.1

-- 
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/20260610063806.4010352-1-amikan%40ilbers.de.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] deb-dl-dir: Fix isar-apt packages checking on export
  2026-06-10  6:38 [PATCH] deb-dl-dir: Fix isar-apt packages checking on export Anton Mikanovich
@ 2026-06-10  7:29 ` 'MOESSBAUER, Felix' via isar-users
  2026-06-10  7:38   ` Anton Mikanovich
  0 siblings, 1 reply; 3+ messages in thread
From: 'MOESSBAUER, Felix' via isar-users @ 2026-06-10  7:29 UTC (permalink / raw)
  To: amikan, isar-users

On Wed, 2026-06-10 at 09:38 +0300, Anton Mikanovich wrote:
> To use variable inside of lock section it should be exported.
> Otherwize it will be empty and isar-apt packages checking logic will
> not work.

Does this mean it was incorrect before our refactorings?
If so, please add a fixes tag.

> 
> Signed-off-by: Anton Mikanovich <amikan@ilbers.de>
> ---
>  meta/classes-recipe/deb-dl-dir.bbclass | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/meta/classes-recipe/deb-dl-dir.bbclass b/meta/classes-recipe/deb-dl-dir.bbclass
> index 620ddc96..fde4fc44 100644
> --- a/meta/classes-recipe/deb-dl-dir.bbclass
> +++ b/meta/classes-recipe/deb-dl-dir.bbclass
> @@ -149,7 +149,7 @@ deb_dl_dir_export() {
>      export owner=$(id -u):$(id -g)
>      mkdir -p "${pc}"
>  
> -    isar_debs="$(${SCRIPTSDIR}/lockrun.py -r -f '${REPO_ISAR_DIR}/isar.lock' -c \
> +    export isar_debs="$(${SCRIPTSDIR}/lockrun.py -r -f '${REPO_ISAR_DIR}/isar.lock' -c \
>      "find '${REPO_ISAR_DIR}/${DISTRO}' -name '*.deb' -print")"

We are running in a non ancient shell, so the quotes on the right side
of the assignment are optional (better remove them to avoid the double
quoting).

isar_debs=$(...) instead of isar_debs="$(...)"

Felix

>  
>      flock "${pc}".lock sudo -Es << 'EOSUDO'
> -- 
> 2.34.1
> 
> -- 
> You received this message because you are subscribed to the Google Groups "isar-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
> To view this discussion visit https://groups.google.com/d/msgid/isar-users/20260610063806.4010352-1-amikan%40ilbers.de.

-- 
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/dff69322d5dd830e658a0e706c54b72e1cf5f990.camel%40siemens.com.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] deb-dl-dir: Fix isar-apt packages checking on export
  2026-06-10  7:29 ` 'MOESSBAUER, Felix' via isar-users
@ 2026-06-10  7:38   ` Anton Mikanovich
  0 siblings, 0 replies; 3+ messages in thread
From: Anton Mikanovich @ 2026-06-10  7:38 UTC (permalink / raw)
  To: MOESSBAUER, Felix, isar-users

10.06.2026 10:29, MOESSBAUER, Felix wrote:
> On Wed, 2026-06-10 at 09:38 +0300, Anton Mikanovich wrote:
>> To use variable inside of lock section it should be exported.
>> Otherwize it will be empty and isar-apt packages checking logic will
>> not work.
> Does this mean it was incorrect before our refactorings?
> If so, please add a fixes tag.
It was probably introduced in 86f1c6e.
Will add the tag.
>
>> Signed-off-by: Anton Mikanovich <amikan@ilbers.de>
>> ---
>>   meta/classes-recipe/deb-dl-dir.bbclass | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/meta/classes-recipe/deb-dl-dir.bbclass b/meta/classes-recipe/deb-dl-dir.bbclass
>> index 620ddc96..fde4fc44 100644
>> --- a/meta/classes-recipe/deb-dl-dir.bbclass
>> +++ b/meta/classes-recipe/deb-dl-dir.bbclass
>> @@ -149,7 +149,7 @@ deb_dl_dir_export() {
>>       export owner=$(id -u):$(id -g)
>>       mkdir -p "${pc}"
>>   
>> -    isar_debs="$(${SCRIPTSDIR}/lockrun.py -r -f '${REPO_ISAR_DIR}/isar.lock' -c \
>> +    export isar_debs="$(${SCRIPTSDIR}/lockrun.py -r -f '${REPO_ISAR_DIR}/isar.lock' -c \
>>       "find '${REPO_ISAR_DIR}/${DISTRO}' -name '*.deb' -print")"
> We are running in a non ancient shell, so the quotes on the right side
> of the assignment are optional (better remove them to avoid the double
> quoting).
>
> isar_debs=$(...) instead of isar_debs="$(...)"
Ok, why not.
>
> Felix
>
>>   
>>       flock "${pc}".lock sudo -Es << 'EOSUDO'
>> -- 
>> 2.34.1
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups "isar-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
>> To view this discussion visit https://groups.google.com/d/msgid/isar-users/20260610063806.4010352-1-amikan%40ilbers.de.

-- 
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/c2b6fc31-5f55-4c53-bc4f-fff91c3bee14%40ilbers.de.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-06-10  7:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-10  6:38 [PATCH] deb-dl-dir: Fix isar-apt packages checking on export Anton Mikanovich
2026-06-10  7:29 ` 'MOESSBAUER, Felix' via isar-users
2026-06-10  7:38   ` Anton Mikanovich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox