Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: rshipp/chaser
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: ccr-tools/chaser
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Able to merge. These branches can be automatically merged.
  • 3 commits
  • 2 files changed
  • 2 contributors

Commits on Jul 14, 2016

  1. Update address to chakralinux.org

    totte committed Jul 14, 2016
    Copy the full SHA
    3c44d1f View commit details

Commits on Feb 18, 2017

  1. Merge branch 'master' of github.com:shainer/chaser

    The two forks (ccr-tools/chaser and shainer/chaser) diverged.
    shainer committed Feb 18, 2017
    Copy the full SHA
    a4fc14e View commit details

Commits on Aug 4, 2017

  1. Properly handle the case of missing CCR dependency.

    The new Chakra website does not return an HTTP error, but some
    error page, which chaser tries to interpret as the package tarfile,
    raising an exception. Catch the exception and print a more helpful
    error message.
    shainer committed Aug 4, 2017
    Copy the full SHA
    75657f7 View commit details
Showing with 10 additions and 3 deletions.
  1. +1 −1 README.rst
  2. +9 −2 chaser/chaser.py
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
@@ -15,4 +15,4 @@ Run::
sudo pacman -S chaser


.. _Chakra Community Repository: http://chakraos.org/ccr
.. _Chakra Community Repository: https://chakralinux.org/ccr
11 changes: 9 additions & 2 deletions chaser/chaser.py
Original file line number Diff line number Diff line change
@@ -33,10 +33,17 @@ def get_source_files(args, workingdir=None):
os.mkdir(workingdir)

for pkgname in pkgnames:
print('Downloading %s' % pkgname)
r = requests.get(ccr.pkg_url(pkgname))
r.raise_for_status()
tar = tarfile.open(mode='r', fileobj=io.BytesIO(r.content))
tar.extractall(workingdir)

try:
tar = tarfile.open(mode='r', fileobj=io.BytesIO(r.content))
tar.extractall(workingdir)
except tarfile.ReadError as re:
print('Unable to open the tar file. Either the package does not '
'exist in CCR or it is malformed: %s' % str(re))


def recurse_depends(pkgname, workingdir=None, graph=None):
"""Build a dependency graph"""