Coder Social home page Coder Social logo

yumrepo's Introduction

yumrepo

Ruby library to deal with YUM repositories.

Usage

Unfortunately yumrepo is pretty much undocummented at the moment. Have a look at the examples/ directory.

Authors

Copyright (c) 2011 Sergio Rubio [email protected] Copyright (c) 2011 Matt Stump [email protected]

See LICENSE.txt for further details.

yumrepo's People

Contributors

rubiojr avatar vinayakvakkund avatar

Stargazers

Andrew Bobulsky avatar Francisco A. Lozano avatar Ryosuke Iwanaga avatar Ranjib Dey avatar Matt Stump avatar  avatar

Watchers

James Cloos avatar  avatar

yumrepo's Issues

Kernel#open is deprecated -- Replace open with URI.open

Hi ,

I am using yumrepo in one of our application, and it's throwing below warning in Fedora 33.
In Fedora 34 we are getting errors instead of warning so it's showstopper for us in Fedora 34. Could you please make below change?

As mentioned below, "open" need to be replaced with URI.open. Please update lib/yumrepo.rb#L94 and lib/yumrepo.rb#L176.

Fedora 33:
/usr/share/gems/gems/yumrepo-0.2.1/lib/yumrepo.rb:94: warning: calling URI.open via Kernel#open is deprecated, call URI.open directly or use URI#open
/usr/share/gems/gems/yumrepo-0.2.1/lib/yumrepo.rb:176: warning: calling URI.open via Kernel#open is deprecated, call URI.open directly or use URI#open

Fedora 34:
/usr/share/gems/gems/yumrepo-0.2.1/lib/yumrepo.rb:94:in initialize': No such file or directory @ rb_sysopen /usr/share/gems/gems/yumrepo-0.2.1/lib/yumrepo.rb:176:in initialize': No such file or directory @ rb_sysopen

Lines to be modified

f = open "#{@url}/repodata/repomd.xml"

f.puts open(data_url).read

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.