Bug 9937

Summary: обрабатываются лишние файлы в /etc/net/options.d/* (rpmsave)
Product: Branch 3.0 Reporter: Sergey Y. Afonin <asy>
Component: etcnetAssignee: Denis Ovsienko <pilot>
Status: CLOSED FIXED QA Contact: Andrey Cherepanov <cas>
Severity: normal    
Priority: P2    
Version: 3.0   
Hardware: all   
OS: Linux   

Description Sergey Y. Afonin 2006-08-30 13:49:34 MSD
> pickup_defaults()
> {
>         for optionsfile in /etc/net/options /etc/net/options.d/*; do
>                 [ -s "$optionsfile" ] && . $optionsfile
>         done

хватает всё, но, при установке, могут появиться файлы *.rpmsave. Надо бы
придумать исключение. При этом, видимо, стоит сделать исключение конфигурируемым
в рассчёте на какие-нибудь другие пакетные менеджеры.

Отдельный момент. Где-то гарантируется, что for ... in ... будет работать с 
сортированным списком ?
Comment 1 Sergey Y. Afonin 2006-08-30 13:58:00 MSD
В Сизифе уже исправлено оказывается, перевешиваю на 3.0
Обновить бы тогда.
Comment 2 Denis Ovsienko 2006-09-05 20:58:46 MSD
Упорядоченность списка обеспечивается sh при раскрытии шаблона (цитирую из man
bash):

       LC_CTYPE
              This  variable  determines  the interpretation of characters and
              the behavior of character classes within pathname expansion  and
              pattern matching.
[...]
   Pathname Expansion
       After  word  splitting,  unless  the -f option has been set, bash scans
       each word for the characters *, ?, and [.  If one of  these  characters
       appears,  then  the word is regarded as a pattern, and replaced with an
       alphabetically sorted list of file names matching the pattern.   If  no

Запрос обновить для C3.0 принимается.
Comment 3 Denis Ovsienko 2006-09-10 02:00:49 MSD
Помещено в ветку etcnet-0.7-maintenance, будет включено в версию 0.7.17.