Bug 36897 - luarocks.filetrigger failed
Summary: luarocks.filetrigger failed
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: lua5.3-luarocks (show other bugs)
Version: unstable
Hardware: all Linux
: P3 normal
Assignee: Alexey Shabalin
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-06-14 01:37 MSK by Vladimir D. Seleznev
Modified: 2019-06-14 21:26 MSK (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir D. Seleznev 2019-06-14 01:37:51 MSK
apt-get install ...
...
/usr/lib/rpm/luarocks.filetrigger failed
warning: posttrans filetriggers scriptlet failed, exit status 1
Done.
Comment 1 ildar 2019-06-14 07:17:48 MSK
в хэшере не воспроизводится.
можете запустить от рута:
> echo /usr/lib/luarocks/rocks | /usr/lib/rpm/luarocks.filetrigger

если повторится, ещё раз с sh -x ?
Comment 2 Vladimir D. Seleznev 2019-06-14 11:19:27 MSK
(In reply to comment #1)
> в хэшере не воспроизводится.
> можете запустить от рута:
> > echo /usr/lib/luarocks/rocks | /usr/lib/rpm/luarocks.filetrigger
> 
> если повторится, ещё раз с sh -x ?

Running /usr/lib/rpm/posttrans-filetriggers
+ grep -qs -e '^/usr/lib/luarocks/rocks'
/usr/lib/rpm/luarocks.filetrigger failed
warning: posttrans filetriggers scriptlet failed, exit status 1

Предлагаю заменить на условие:
-grep -qs -e '^/usr/lib/luarocks/rocks' && \
+if grep -qs -e '^/usr/lib/luarocks/rocks'; then
...
+fi
Comment 3 ildar 2019-06-14 18:26:37 MSK
ага, нашёл, как воспроизвести.
Это, видимо, подарочек от bash4. Но я не пойму, как работают многие другие *.filetrigger с аналогичной конструкцией.
Comment 4 ildar 2019-06-14 21:12:49 MSK
спасибо, разобрался.
Comment 5 Repository Robot 2019-06-14 21:26:58 MSK
lua5.3-luarocks-2.4.2-alt7 -> sisyphus:

Sat Jun 15 2019 Ildar Mulyukov <ildar@altlinux.ru> 2.4.2-alt7
- improved luarocks.filetrigger (closes: 36897)