Better rpm database downgrade logic
Better rpm database downgrade logic

Use the file command to see if the rpm database version needs to
be downgraded. Use the lsb_release command to determine the host
system, which is then used to set the commands needed to do the
conversion, and lets us move the rpm database to the correct location
if the host rpm doesn't put it where the guest expects it to be.

Signed-off-by: Dwight Engen <1793d65cf7b9eefb2bb8f5bee9a4b8ba782c26da@oracle.com>

yubo/lxc,weizhenwei/lxc,smoser/lxc,ioops/lxc,GreatFruitOmsk/lxc,JohnPeacockMessageSystems/lxc,abstrakraft/lxc-android-lxc,ysbnim/lxc,aeris/lxc,bostjan/lxc,armcc/lxc,bmoar/lxc,LynxChaus/lxc,ojkastl/lxc_Patches,ysbnim/lxc,christiaan/lxc,weizhenwei/lxc,fwilson42/lxc,QingweiPeterLan/cs188-lxc,aeris/lxc,terceiro/lxc,ojkastl/lxc_Patches,hfuCN/lxc,cjwatson/lxc,yubo/lxc,DarknessBeforeDawn/lxc,glensc/lxc,fwilson42/lxc,akshaykarle/lxc,thmo/lxc,weizhenwei/lxc,christiaan/lxc,ksperis/lxc,regit/lxc,rldleblanc/lxc,ecarrara/lxc,smoser/lxc,rldleblanc/lxc,ss1h2a3tw/lxc,Pelagicore/lxc,virajs/lxc,codebauss/lxc,codebauss/lxc,glensc/lxc,ksperis/lxc,Distrotech/lxc,virajs/lxc,DarknessBeforeDawn/lxc,aeris/lxc,DarknessBeforeDawn/lxc,caglar10ur/lxc,ecarrara/lxc,smoser/lxc,Pelagicore/lxc,lisongmin/lxc,jirislaby/lxc,ss1h2a3tw/lxc,bostjan/lxc,lazy404/lxc,christiaan/lxc,Ponce/lxc,terceiro/lxc,glensc/lxc,federicobriata/lxc,lisongmin/lxc,sapun/lxc,ioops/lxc,Distrotech/lxc,Ponce/lxc,thmo/lxc,hkjolhede/lxc,terceiro/lxc,lisongmin/lxc,hfuCN/lxc,efiop/lxc,akshaykarle/lxc,ojkastl/lxc_Patches,cjwatson/lxc,rldleblanc/lxc,Distrotech/lxc,szaszg/lxc,abstrakraft/lxc-android-lxc,LynxChaus/lxc,raspberrypython/lxc,lazy404/lxc,hallyn/lxc,rowhit/lxc,federicobriata/lxc,ksperis/lxc,armcc/lxc,ojkastl/lxc_Patches,ecarrara/lxc,yubo/lxc,caglar10ur/lxc,rowhit/lxc,thmo/lxc,codebauss/lxc,jirislaby/lxc,efiop/lxc,raspberrypython/lxc,jirislaby/lxc,efiop/lxc,abstrakraft/lxc-android-lxc,bmoar/lxc,Pelagicore/lxc,fwilson42/lxc,JohnPeacockMessageSystems/lxc,virajs/lxc,cjwatson/lxc,tych0/lxc,GreatFruitOmsk/lxc,hallyn/lxc,major/lxc,tych0/lxc,raspberrypython/lxc,ss1h2a3tw/lxc,LynxChaus/lxc,Ponce/lxc,sapun/lxc,szaszg/lxc,smoser/lxc,szaszg/lxc,ioops/lxc,bostjan/lxc,JohnPeacockMessageSystems/lxc,major/lxc,QingweiPeterLan/cs188-lxc,abstrakraft/lxc-android-lxc,hfuCN/lxc,tych0/lxc,armcc/lxc,akshaykarle/lxc,caglar10ur/lxc,lazy404/lxc,bmoar/lxc,major/lxc,QingweiPeterLan/cs188-lxc,hkjolhede/lxc,regit/lxc,hallyn/lxc,regit/lxc,federicobriata/lxc,sapun/lxc,ysbnim/lxc,rowhit/lxc,hkjolhede/lxc,GreatFruitOmsk/lxc