diff options
author | Gustavo De Nardin <spuk@mandriva.org> | 2007-05-08 07:20:43 +0000 |
---|---|---|
committer | Gustavo De Nardin <spuk@mandriva.org> | 2007-05-08 07:20:43 +0000 |
commit | 90a3c3e5a22de5b8a2c26c2fd7238152fc9e7def (patch) | |
tree | 1b2ae679780e7da799db0ba5080dde805237d443 | |
parent | 86e8b848796998fd360fd171efe5c569f629714c (diff) | |
download | mga-youri-core-90a3c3e5a22de5b8a2c26c2fd7238152fc9e7def.tar mga-youri-core-90a3c3e5a22de5b8a2c26c2fd7238152fc9e7def.tar.gz mga-youri-core-90a3c3e5a22de5b8a2c26c2fd7238152fc9e7def.tar.bz2 mga-youri-core-90a3c3e5a22de5b8a2c26c2fd7238152fc9e7def.tar.xz mga-youri-core-90a3c3e5a22de5b8a2c26c2fd7238152fc9e7def.zip |
FIXME note for evil code
-rw-r--r-- | lib/Youri/Repository/Mandriva_upload.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Youri/Repository/Mandriva_upload.pm b/lib/Youri/Repository/Mandriva_upload.pm index 381aee5..e983a4a 100644 --- a/lib/Youri/Repository/Mandriva_upload.pm +++ b/lib/Youri/Repository/Mandriva_upload.pm @@ -386,6 +386,9 @@ sub _get_section { } } + # FIXME: doing this here is wrong; this way the caller can never know if + # a section was actually found or not; should return undef and let the + # caller set a default (Note: IIRC PLF|Zarb has this right, see there) -spuk print STDERR "Warning: Can't guess destination: section missing, defaulting to contrib/release\n" unless $section; $section ||= 'contrib/release'; |