Non-existing {list} glob option mentioned in path exclude example #28

Closed
opened 2022-10-05 19:33:15 +00:00 by Ghost · 1 comment

The documentation mentions a few examples of how to use the path-exclude option of dpkg to remove unwanted files from the image. One example does not work for me, which is mentioned on line 6144 of today's mmdebstrap in main:

  --dpkgopt='path-exclude=/usr/share/{doc,info,man,omf,help,gnome/help}/*'

Looking at dpkg(1) and glob(7) (referenced by dpkg(1)) the curly-braces list glob indeed won't work as this syntax is not mentioned there. It does work in bash, but it seems dpkg does not support this.

I've tried escaping the curly braces using backslashes but that does not help. Splitting out the individual items over multiple dpkgopt lines works fine.

My suggestion is to remove this specific example from the documentation if my finding can be confirmed.

(Btw, thank you for this tool, it is a very nice improvement over debootstrap!)

The documentation mentions a few examples of how to use the path-exclude option of dpkg to remove unwanted files from the image. One example does not work for me, which is mentioned on [line 6144 of today's mmdebstrap in main](https://gitlab.mister-muffin.de/josch/mmdebstrap/src/commit/adf62afcea372cbf095ef804d93e196b58a4e10a/mmdebstrap#L6144): ``` --dpkgopt='path-exclude=/usr/share/{doc,info,man,omf,help,gnome/help}/*' ``` Looking at dpkg(1) and glob(7) (referenced by dpkg(1)) the curly-braces list glob indeed won't work as this syntax is not mentioned there. It does work in bash, but it seems dpkg does not support this. I've tried escaping the curly braces using backslashes but that does not help. Splitting out the individual items over multiple dpkgopt lines works fine. My suggestion is to remove this specific example from the documentation if my finding can be confirmed. (Btw, thank you for this tool, it is a very nice improvement over debootstrap!)
Owner

Thank you! It seems I copypasted this syntax without checking from http://bugs.debian.org/951112

I will just revert 40b6155967

Thank you! It seems I copypasted this syntax without checking from http://bugs.debian.org/951112 I will just revert 40b6155967f62559be519370d8b7fcd8635c5e0f
josch closed this issue 2022-11-16 13:12:36 +00:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: josch/mmdebstrap#28
No description provided.