A 32-year-old man, a repeat criminal offender, has been sentenced to seven years in prison after pleading guilty on May 23 to a number of felony counts including possession of fentanyl for sale with an allegation of being personally armed with a firearm,” San Diego County District Attorney Summer Stephan said Tuesday.