Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 679772 | Differences between
and this patch

Collapse All | Expand All

(-)pfl-3.0/cron/pfl (-1 / +1 lines)
Lines 1-2 Link Here
1
#!/bin/sh
1
#!/bin/sh
2
exec nice /usr/bin/pfl >/dev/null
2
setpriv --reuid=portage --regid=portage --clear-groups nice /usr/bin/pfl >/dev/null
(-)pfl-3.0/pfl/pfl.py (-2 / +3 lines)
Lines 10-15 Link Here
10
import sys
10
import sys
11
import os
11
import os
12
import io
12
import io
13
import pwd
13
from tempfile import mkstemp
14
from tempfile import mkstemp
14
import configparser
15
import configparser
15
from time import time
16
from time import time
Lines 17-26 Link Here
17
# proxy
18
# proxy
18
import re
19
import re
19
20
20
VERSION = '3.0'
21
VERSION = '3.0.1'
21
HOME = os.getenv('HOME')
22
HOME = os.getenv('HOME')
22
DEBUG = os.path.exists(('%s/debugpfl' % HOME))
23
DEBUG = os.path.exists(('%s/debugpfl' % HOME))
23
if os.getuid() == 0:
24
if pwd.getpwuid(os.getuid())[0] == 'portage':
24
    INFOFILE = '/var/lib/pfl/pfl.info'
25
    INFOFILE = '/var/lib/pfl/pfl.info'
25
else:
26
else:
26
    INFOFILE = '%s/.pfl.info' % HOME;
27
    INFOFILE = '%s/.pfl.info' % HOME;

Return to bug 679772