FS#44855 - [newsbeuter] 2.9-1 Cache is deleted on quitting when only one feed is present
Attached to Project:
Community Packages
Opened by Harshavardhan Rangan (hrangan) - Tuesday, 05 May 2015, 05:01 GMT
Last edited by Jaroslav Lichtblau (Dragonlord) - Saturday, 02 December 2017, 18:07 GMT
Opened by Harshavardhan Rangan (hrangan) - Tuesday, 05 May 2015, 05:01 GMT
Last edited by Jaroslav Lichtblau (Dragonlord) - Saturday, 02 December 2017, 18:07 GMT
|
Details
Description:
When exiting newsbeuter with only one rss feed in `~.newsbeuter/urls`, [src/cache.cpp:568] (https://github.com/akrennmair/newsbeuter/blob/50c713cbc8d7f889dc2029dfc24702ec31fef114/src/cache.cpp#L568) generates a list of one element with extra quotes, which reqults in an SQL statement that looks like this, DELETE FROM rss_feed WHERE rssurl NOT IN ('https://www.archlinux.org/feeds/news/'''); and the extra quotes are messing with the search results, sqlite> select * from rss_feed where rssurl NOT IN ('https://www.archlinux.org/feeds/news/'''); https://www.archlinux.org/feeds/news/|https://www.archlinux.org/news/|Arch Linux: Recent news updates|0|0| sqlite> select * from rss_feed where rssurl NOT IN ('https://www.archlinux.org/feeds/news/'); sqlite> Steps to reproduce: 1. Update ~/.newsbeuter/urls to contain only one url. 2. Start newsbeuter and reload the feed information. 3. Quit and restart newsbeuter, the item count for the feed should have reset to zero. |
This task depends upon
Closed by Jaroslav Lichtblau (Dragonlord)
Saturday, 02 December 2017, 18:07 GMT
Reason for closing: Won't fix
Additional comments about closing: newsbeuter replaced by newsboat in the community repository
Saturday, 02 December 2017, 18:07 GMT
Reason for closing: Won't fix
Additional comments about closing: newsbeuter replaced by newsboat in the community repository
Comment by
Harshavardhan Rangan (hrangan) -
Tuesday, 05 May 2015, 05:02 GMT
This is an issue in the upstream package. I've sent a pull request
to fix this,
https://github.com/akrennmair/newsbeuter/pull/179