Check if the character after the package name is a digit or not. If it
is a digit, this is a valid package emerge, and if it's not we're
dealing with another package that has a similiar name.
if package in line:
if (">>>" in line) and ("emerge" in line):
st = line.split(' ')
- for i in st:
- if package_name in i:
- full_package = st[st.index(i)]
+ for string in st:
+ if package in string:
+ if string[len(package)+1].isdigit():
+ full_package = st[st.index(string)]
time = get_time(line, 1)