Keep channels in folder

Anders F Björklund afb at algonet.se
Fri Oct 2 06:11:27 PDT 2009


  Luís Eterovick wrote:

> i have this part of a code that removes the smart channels in /var/ 
> lib/smart/channels and create new ones according to self.channels  
> only: http://pastie.org/638176 how can i change the code in order  
> to KEEP the channels in this dir and just add new channels and  
> overwrite old ones?

The /var/lib/smart/channels cache directory is used when channels are  
loaded, the actual channels are kept in the Smart configuration. So  
you can either use smart channel command to add/remove them, or use  
the channelsync plugin and the /etc/smart/channels directory.  
Normally it would be the channel loader that would fetch and  
uncompress things into the channelsdir, and your code wouldn't touch  
it at all.

But things that you write directly into the channelsdir are going to  
get deleted, unless they were created by a channel in use.

--anders




More information about the Smart mailing list