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

Closed
opened 2 years ago by Ghost · 1 comments
Ghost commented 2 years ago

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!)
josch commented 2 years ago
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 referenced this issue from a commit 1 year ago
josch closed this issue 1 year ago
Sign in to join this conversation.
No Label
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
Loading…
There is no content yet.