aboutsummaryrefslogtreecommitdiff
path: root/NOTES
blob: fa18c555145ed491e986380b765827a646db949c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
This is few notes mainly for myself.

1. Format of log record:
 <time of event: sec since 1970>
 <event type: open, read, write>
 <name of file>
 <building stage: stagename or unknown>
 <result:OK,ERR/errno,ASKING,DENIED>

2. Format of answer for ASKING packet:
 <ALLOW | DENY>

3. Format of events structure:
 [
  {
   <stage of building>:{<filename>:(<was readed>,<was writed>)}
  },
  {
   <stage of building>:{<filename>:(<was not found>,<was blocked>)}
  }
 ]

4. Format of converted events structure:
 {
  <package|unknown>: {
   stage: {
    <filename>:
     {found:[<was readed>,<was writed>],
      notfound:[<was not found>,<was blocked>]}
   }
  }
 }

5. Names of files is always raw strings(non-unicode)

6. Commands to launch custom emerge:
export PATH="/home/bay/autodep/portage_with_autodep/bin:$PATH"
export PYTHONPATH="/home/bay/autodep/portage_with_autodep/pym:$PYTHONPATH"