Bug 596920

Summary: defined(%hash) is deprecated
Product: [openSUSE] openSUSE 11.3 Reporter: Alexander Osthof <aosthof>
Component: YaST2Assignee: Ladislav Slezák <lslezak>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Minor    
Priority: P3 - Medium CC: bluedzins, Mark.Farquhar, rastislav.krupansky
Version: Factory   
Target Milestone: ---   
Hardware: x86-64   
OS: Other   
Whiteboard:
Found By: Development Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Alexander Osthof 2010-04-15 13:22:31 UTC
When installing factory via vnc, one gets following message:

*** Starting YaST2 ***
defined(%hash) is deprecated at /usr/share/YaST2/modules/URLRecode.pm line 39 (#1)
    (D deprecated) defined() is not usually useful on hashes because it
    checks for an undefined scalar value. If you want to see if the hash
    is empty, just use if (%hash) { # not empty } for example.

         (Maybe you should just omit the defined()?)
defined(%hash) is deprecated at /usr/share/YaST2/modules/URLRecode.pm line 53 (#1)
         (Maybe you should just omit the defined()?)
defined(%hash) is deprecated at /usr/share/YaST2/modules/URLRecode.pm line 67 (#1)
         (Maybe you should just omit the defined()?)
Comment 1 Arvin Schnell 2010-04-15 14:11:55 UTC
Ladislav is author of URLRecode.pm.
Comment 2 Ladislav Slezák 2010-04-19 07:54:34 UTC
Fixed in yast2-2.19.12.
Comment 3 Ladislav Slezák 2010-04-19 13:24:40 UTC
*** Bug 595560 has been marked as a duplicate of this bug. ***
Comment 4 Ladislav Slezák 2010-09-10 07:46:35 UTC
*** Bug 606662 has been marked as a duplicate of this bug. ***
Comment 5 Forgotten User h13THG8RK1 2010-10-31 13:52:24 UTC
*** Bug 596845 has been marked as a duplicate of this bug. ***
Comment 6 Bernhard Wiedemann 2016-04-15 11:37:39 UTC
This is an autogenerated message for OBS integration:
This bug (596920) was mentioned in
https://build.opensuse.org/request/show/38182 Factory / yast2