Gentoo Archives: gentoo-soc

From: Benda Xu <heroxbd@g.o>
To: gentoo-soc@l.g.o
Subject: Re: [gentoo-soc] Last Compiled Info in Porthole
Date: Mon, 08 Apr 2019 23:35:11
Message-Id: 87d0lwf4s2.fsf@gentoo.org
In Reply to: [gentoo-soc] Last Compiled Info in Porthole by Ethan Kiang
1 Hi Ethan,
2
3 Ethan Kiang <chocopuff298@×××××.com> writes:
4
5 > diff --git a/porthole/backends/portlandlib.py b/porthole/backends/portlandlib.py
6 > new file mode 100644
7 > index 0000000..c165adb
8 > --- /dev/null
9 > +++ b/porthole/backends/portlandlib.py
10 > @@ -0,0 +1,47 @@
11 > +import re
12 > +import datetime
13 > +from os import listdir
14 > +import subprocess
15 > +
16 > +EPREFIX = subprocess.check_output(["portageq", "envvar", "EPREFIX"]).decode().strip()
17
18 Is it possible that the portage API is used here?
19
20 Benda

Replies

Subject Author
Re: [gentoo-soc] Last Compiled Info in Porthole Ethan Kiang <chocopuff298@×××××.com>
Re: [gentoo-soc] Last Compiled Info in Porthole Brian Dolbec <dolsen@g.o>