Gracefully handling nonexisting packages

Introduced line status to track if line has spec at all.