Abort initialization when essential settings aren't set
arnisoph opened this issue · 1 comments
arnisoph commented
Configuration:
<Repository debian_wheezy_ovs193>
local = debian_wheezy_ovs193
type = Apt
</Repository>
Command:
# repositorio --init --repo=debian_wheezy_ovs19
Output:
Use of uninitialized value $component in concatenation (.) or string at /usr/local/share/perl/5.14.2/Rex/Repositorio/Repository/Apt.pm line 232.
Use of uninitialized value $dist in concatenation (.) or string at /usr/local/share/perl/5.14.2/Rex/Repositorio/Repository/Apt.pm line 235.
Use of uninitialized value $component in concatenation (.) or string at /usr/local/share/perl/5.14.2/Rex/Repositorio/Repository/Apt.pm line 235.
Use of uninitialized value $arch in concatenation (.) or string at /usr/local/share/perl/5.14.2/Rex/Repositorio/Repository/Apt.pm line 235.
Use of uninitialized value $dist in concatenation (.) or string at /usr/local/share/perl/5.14.2/Rex/Repositorio/Repository/Apt.pm line 237.
Use of uninitialized value $component in concatenation (.) or string at /usr/local/share/perl/5.14.2/Rex/Repositorio/Repository/Apt.pm line 237.
Use of uninitialized value $component in concatenation (.) or string at /usr/local/share/perl/5.14.2/Rex/Repositorio/Repository/Apt.pm line 245.
Use of uninitialized value $component in concatenation (.) or string at /usr/local/share/perl/5.14.2/Rex/Repositorio/Repository/Apt.pm line 245.
Use of uninitialized value $dist in concatenation (.) or string at /usr/local/share/perl/5.14.2/Rex/Repositorio/Repository/Apt.pm line 245.
Use of uninitialized value $dist in concatenation (.) or string at /usr/local/share/perl/5.14.2/Rex/Repositorio/Repository/Apt.pm line 245.
Use of uninitialized value $arch in concatenation (.) or string at /usr/local/share/perl/5.14.2/Rex/Repositorio/Repository/Apt.pm line 245.
Use of uninitialized value $component in concatenation (.) or string at /usr/local/share/perl/5.14.2/Rex/Repositorio/Repository/Apt.pm line 245.
Use of uninitialized value $dist in concatenation (.) or string at /usr/local/share/perl/5.14.2/Rex/Repositorio/Repository/Apt.pm line 258.
Use of uninitialized value $dist in concatenation (.) or string at /usr/local/share/perl/5.14.2/Rex/Repositorio/Repository/Apt.pm line 258.
Use of uninitialized value $dist in concatenation (.) or string at /usr/local/share/perl/5.14.2/Rex/Repositorio/Repository/Apt.pm line 258.
Use of uninitialized value $component in concatenation (.) or string at /usr/local/share/perl/5.14.2/Rex/Repositorio/Repository/Apt.pm line 258.
Use of uninitialized value $arch in concatenation (.) or string at /usr/local/share/perl/5.14.2/Rex/Repositorio/Repository/Apt.pm line 258.
Use of uninitialized value $dist in concatenation (.) or string at /usr/local/share/perl/5.14.2/Rex/Repositorio/Repository/Apt.pm line 258.
Use of uninitialized value $component in concatenation (.) or string at /usr/local/share/perl/5.14.2/Rex/Repositorio/Repository/Apt.pm line 258.
Use of uninitialized value $arch in concatenation (.) or string at /usr/local/share/perl/5.14.2/Rex/Repositorio/Repository/Apt.pm line 258.
Use of uninitialized value $dist in concatenation (.) or string at /usr/local/share/perl/5.14.2/Rex/Repositorio/Repository/Apt.pm line 258.
Use of uninitialized value $arch in concatenation (.) or string at /usr/local/share/perl/5.14.2/Rex/Repositorio/Repository/Apt.pm line 258.
Use of uninitialized value $dist in concatenation (.) or string at /usr/local/share/perl/5.14.2/Rex/Repositorio/Repository/Apt.pm line 258.
Use of uninitialized value $component in concatenation (.) or string at /usr/local/share/perl/5.14.2/Rex/Repositorio/Repository/Apt.pm line 258.
Use of uninitialized value $arch in concatenation (.) or string at /usr/local/share/perl/5.14.2/Rex/Repositorio/Repository/Apt.pm line 258.
dists///binary-: New 14 B 0 files 0 B 0s
Packages done, Starting contents.
dists//Contents-: New 14 B 0 files 0 B 0s
Done. 0 B in 0 archives. Took 0s
Use of uninitialized value $dist in concatenation (.) or string at /usr/local/share/perl/5.14.2/Rex/Repositorio/Repository/Apt.pm line 339.
Use of uninitialized value $dist in concatenation (.) or string at /usr/local/share/perl/5.14.2/Rex/Repositorio/Repository/Apt.pm line 339.
Installed via bootstrap script.
# repositorio --help
repositorio: 0.1.0
Setting sufficent settings got it working.
<Repository debian_wheezy_ovs193>
local = debian_wheezy_ovs193
type = Apt
arch = x86_64
dist = wheezy
component = main
</Repository>
krimdomu commented
Hi,
thanks you for the bug report and sorry for the delay.
This is now fixed in master branch.