I should say, was it repackaged legitimately, or did you repackage it with the intent to buy it for cheaper? That would be a bigger deal.
However, if it was something that needed a repackage, and was out on a clearance endcap for guests to buy, then it should be fine.
At least, according to the rules I'm familiar with.