Uganda Museveni anti-gay law
Uganda's President Yoweri Museveni arrives for the opening ceremony of the African Union summit in Addis Ababa, Ethiopia Reuters

Ugandan President Yoweri Museveni has signed a law which criminalises indecency, bans the promotion of pornography and outlaws the wearing of miniskirts.

Women will now be forbidden from wearing risqué clothing, including cleavage-revealing tops that "excite sexual cravings in public", according to Ugandan Newspaper New Vision.

The legislation also bans media houses from publishing photos of couples kissing or of indecently-dressed women in nightclubs.

The bill passed through the Ugandan parliament in December and Ugandan state minister Simon Lokodo announced that Museveni signed the bill into law at the beginning of February.

"We do not like you to behave in a way that draws the attention of other people. Be decent and let your cloth show you as a decent person," Lokodo said of the bill.

"If you are dressed in something that irritates the mind and excites other people especially of the opposite sex, you are dressed in wrong attire and please hurry up and change," he continued.

A national anti-pornography committee is to be created to ensure the early detection, collection and destruction of pornographic materials.

Last month, Museveni refused to sign an anti-gay law that proposed to imprison homosexuals for life but now appears to have changed his mind after signalling he will sign the legislation in the near future.