[Zeitgeist] [Bug 769948] Re: Add support for yum

2011-07-06 Thread मनीष सिन्हा
Maciej, I think the first use case is enough. That would suffice. We can think about it later. There are some cases in which we are helpless. If the whole environment gets replaced, then I cant find any way for the script to know which user actually initiated it. I would suggest you to finish t

[Zeitgeist] [Bug 769948] Re: Add support for yum

2011-07-05 Thread Maciej Małecki
Sorry I could get back to it so late. I've figured out a way to handle the problem with root privileges (at least, most cases). Plugin now forks right after collecting data. Fork tries to find out who ran it really (by checking environment variables) and sets it's UID and GID like he was that u

[Zeitgeist] [Bug 769948] Re: Add support for yum

2011-05-18 Thread Siegfried Gevatter
Maybe yum logs its actions to some file which can be read by users (and so parsed by zeitgeist-datahub)? -- You received this bug notification because you are a member of Zeitgeist Framework Team, which is subscribed to Zeitgeist Data-Sources. https://bugs.launchpad.net/bugs/769948 Title: Add

Re: [Zeitgeist] [Bug 769948] Re: Add support for yum

2011-04-26 Thread मनीष सिन्हा
Just click on also affects and set it to zeitgeist. Seif and rainct should decide now as rest are not so free for zg work On 27-Apr-2011 1:21 AM, "Maciej Małecki" <769...@bugs.launchpad.net> wrote: > > For ls it's true, because ~ is expanded by bash. Python works in a bit different way: >$ sudo

[Zeitgeist] [Bug 769948] Re: Add support for yum

2011-04-26 Thread Maciej Małecki
For ls it's true, because ~ is expanded by bash. Python works in a bit different way: $ sudo python >>> import os >>> os.getenv("HOME") '/root' >>> import os.path >>> os.path.expanduser("~") '/root' Yes, there are few environment variables preserved (like USERNAME), bu

[Zeitgeist] [Bug 769948] Re: Add support for yum

2011-04-26 Thread मनीष सिन्हा
I think this is not much of a problem provided the user uses "sudo" instead "su". Just try $ sudo ls ~ You will see that it is outputs the folders of your directory and not root's When you use sudo you just get superuser privileges and your environment variable are not changed. -- You receive

[Zeitgeist] [Bug 769948] Re: Add support for yum

2011-04-26 Thread Maciej Małecki
Oops. Now I'm facing a problem which I haven't thought about before and which I haven't noticed before latest commit. Zeitgeist-daemon is running with privileges of current user, whilst yum needs root privileges to run, so yum plugin tries to talk to nonexistent zeitgeist-daemon in context of ro

[Zeitgeist] [Bug 769948] Re: Add support for yum

2011-04-25 Thread Maciej Małecki
This branch is not done yet (it does nothing besides installing this "plugin" now), I think I will get it done in 2 days or so (I will issue a merge request then). I'm currently using Fedora 15 and Fedora 14 (though tomorrow I'm switching all hosts to Fedora 15). Fedora 15 Beta is here: http://f

[Zeitgeist] [Bug 769948] Re: Add support for yum

2011-04-25 Thread मनीष सिन्हा
Maciej, I saw your yum branch. Will merge it once I download Fedora and improve that branch a bit more. BTW which version of Fedora should I install and which version? The latest one in development? F15? Link to download that exact one? -- You received this bug notification because you are a me

[Zeitgeist] [Bug 769948] Re: Add support for yum

2011-04-25 Thread Maciej Małecki
** Branch linked: lp:~maciej-malecki/zeitgeist-dataproviders/yum-plugin -- You received this bug notification because you are a member of Zeitgeist Framework Team, which is subscribed to Zeitgeist Data-Sources. https://bugs.launchpad.net/bugs/769948 Title: Add support for yum Status in Zeitge

[Zeitgeist] [Bug 769948] Re: Add support for yum

2011-04-24 Thread Maciej Małecki
There's an API. Plugin gets "inserted" into process of installing packages. It is described here: http://yum.baseurl.org/wiki/WritingYumPlugins There is also another way ( http://mo.morsi.org/blog/node/220 ), but it would need to be called with some interval, gather information about all installe

[Zeitgeist] [Bug 769948] Re: Add support for yum

2011-04-24 Thread मनीष सिन्हा
Maciej, You have an idea how of yum works internally, can any script be loaded? Means extensions support. If it is there, then it's a great thing. Please let us know -- You received this bug notification because you are a member of Zeitgeist Framework Team, which is subscribed to Zeitgeist Data