Bug 961251

Summary: Attempting to create local directory repository using the via Software Repositories crashes the module
Product: [openSUSE] openSUSE Tumbleweed Reporter: Roman Bysh <rb03884>
Component: YaST2Assignee: E-mail List <yast2-maintainers>
Status: RESOLVED DUPLICATE QA Contact: Jiri Srain <jsrain>
Severity: Normal    
Priority: P5 - None CC: mpluskal
Version: Current   
Target Milestone: Current   
Hardware: x86-64   
OS: openSUSE 42.1   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Screenshot of pop up error message
Original unedited "repositories_include.rb" ruby script file

Description Roman Bysh 2016-01-09 01:09:02 UTC
A. Navigating to Yast Software Repositories
B. Clicking on the "Add" button and selecting the Local Directory
C. Clicking on the "Next" and "Browse" buttons to select the path directory to my /home/username/ directory. Typed in a new name in the "Repository Name" field.
D. Clicking on the Next button causes a crash and internal error.

This due to an undefined local variable or method in:

/usr/share/YaST2/include/packager/repositories_include.rb

Navigate to line 465:

Replace:
case ret
      when :again 
        :back
      when :abort, :cancel
        :abort
      when :next
        :next
      else
        log.warn "Received unknown result: #{ret}, using :next instead"
        :next
      end
    end

With:
 if ret == :again
        return :back
      elsif ret == :abort
        return :abort
      end
      :next
    end 

Save the changes to "repositories_include.rb" and the problem is resolved.
Comment 1 Roman Bysh 2016-01-09 01:12:45 UTC
Created attachment 661261 [details]
Screenshot of pop up error message

This is the message that pops up after the module crashes with an internal error.
Comment 2 Roman Bysh 2016-01-09 01:19:32 UTC
The ISO that I installed was in Build 20151227
Comment 3 Roman Bysh 2016-01-09 01:29:27 UTC
Created attachment 661262 [details]
Original unedited "repositories_include.rb" ruby script file

I've included the original "repositories_include.rb" ruby script file provided with Build 20151227.
Comment 4 Martin Pluskal 2016-01-10 21:10:18 UTC
Looks like a duplicate.

*** This bug has been marked as a duplicate of bug 960350 ***