dont use python in type explorer
Signed-off-by: Steven Armstrong <steven@icarus.ethz.ch>
This commit is contained in:
parent
ec7e836b1d
commit
2bab4ed93b
1 changed files with 6 additions and 2 deletions
|
@ -23,6 +23,10 @@
|
||||||
|
|
||||||
name="$__object_id"
|
name="$__object_id"
|
||||||
|
|
||||||
# FIXME: on first run check-apt-repository may not be installed
|
. /etc/lsb-release
|
||||||
check-apt-repository "$name" && echo enabled || echo disabled
|
|
||||||
|
repo_name="${name#ppa:}"
|
||||||
|
repo_file_name="$(echo "$repo_name" | sed "s:\/:\-:")-${DISTRIB_CODENAME}.list"
|
||||||
|
|
||||||
|
[ -f "/etc/apt/sources.list.d/${repo_file_name}" ] && echo enabled || echo disabled
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue