haxmeister / liguros-reporter

Anonymous reporting tool for Liguros Linux
MIT License
5 stars 3 forks source link

uuid getting changed with --update-config #146

Open palica opened 5 years ago

palica commented 5 years ago

This should not happen IMHO, we should change the uuid only if it didn't exist prior to running f-r --update-config Otherwise we will end up with different uuid in the db.

palica commented 5 years ago

also production version affected

palica commented 5 years ago

So one issue. If UUID present it doesn't change it so this is fine, but if I delete it I am getting this error:

Use of uninitialized value $new_config{"UUID"} in concatenation (.) or string at /usr/lib64/perl5/vendor_perl/5.26.2/Funtoo/Report.pm line 244, <STDIN> line 7.

and the config file just gets an empty UUID: line

running --update-config again generates the uuid and stores it as expected.