ALT Linux Bugzilla
– Attachment 19158 Details for
Bug 55264
Не справляется, если Description содержит перевод строки в начале
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
Вариант патча.
alien-alt-fix-missing-spaces2-in-control.patch (text/plain), 828 bytes, created by
ruslandh
on 2025-07-22 16:21:46 MSK
(
hide
)
Description:
Вариант патча.
Filename:
MIME Type:
Creator:
ruslandh
Created:
2025-07-22 16:21:46 MSK
Size:
828 bytes
patch
obsolete
>diff -uNrBbwp alien-8.95.8/Alien/Package/Deb.pm alien-8.95.8-new/Alien/Package/Deb.pm >--- alien-8.95.8/Alien/Package/Deb.pm 2025-07-22 11:17:46.000000000 +0000 >+++ alien-8.95.8-new/Alien/Package/Deb.pm 2025-07-22 13:11:36.097861586 +0000 >@@ -250,7 +250,7 @@ sub scan { > for (my $i=0; $i <= $#control; $i++) { > $_ = $control[$i]; > chomp; >- if (/^(\w.*?):\s+(.*)/) { >+ if (/^(\w.*?):\s*(.*)/) { > # Really old debs might have oddly capitalized > # field names. > $field=ucfirst(lc($1)); >@@ -263,7 +263,11 @@ sub scan { > # Handle extended description. > s/^ //g; > $_="" if $_ eq "."; >- $description.="$_\n"; >+ $description .= $_; >+ } >+ elsif ($field eq 'description') { >+ s/^\s*//; >+ $description .= "$_\n" if $_; > } > } > $this->description($description);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 55264
: 19158 |
20310