Skip to content

Issues deleting with "-D" #4

Description

@Gumnos

To recreate

$ rm ~/.termfeed
$ mkvirtualenv tf
(tf)$ pip install termfeed
(tf)$ feed -t
AI
CS
GEEK
General
Python
Science
Stack
ML
News
Research
(tf)$ feed -t | sed '1,2d;s/^\s*//' | xargs -n 1 feed -D # this should delete all the feeds/topics
created ".termfeed.db" in /home/demo
Removed "AI" from your library.
created ".termfeed.db" in /home/demo
Removed "CS" from your library.
created ".termfeed.db" in /home/demo
Removed "GEEK" from your library.
created ".termfeed.db" in /home/demo
Default topic "General" cannot be removed.
created ".termfeed.db" in /home/demo
Removed "Python" from your library.
created ".termfeed.db" in /home/demo
Removed "Science" from your library.
created ".termfeed.db" in /home/demo
Removed "Stack" from your library.
created ".termfeed.db" in /home/demo
Removed "ML" from your library.
created ".termfeed.db" in /home/demo
Removed "News" from your library.
created ".termfeed.db" in /home/demo
Removed "Research" from your library.
(tf)$ feed -t
  AI
  CS
  GEEK
  General
  Python
  Science
  Stack
  ML
  News
  Research
(tf)$ feed -t ML
created ".termfeed.db" in /home/demo
ML resources:
  http://hunch.net/?feed=rss2
  http://research.microsoft.com/rss/downloads.xml
  http://mlg.eng.cam.ac.uk/?feed=rss2

Note that after deleting each of the topics/feeds with "-D" (I'm cool with "General" hanging around as the output does mention its sacred), the topics still exist and a sampling of them shows that the URLs weren't actually deleted from the feed.

Also, the debugging output mentions ~/.termfeed.db but the program actually uses/creates ~/.termfeed without the .db extension.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions