refactor debian repo handling