Giter Club home page Giter Club logo

pacgraph's People

Contributors

aparicio99 avatar keenerd avatar kljohann avatar mdtipton avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

pacgraph's Issues

Issue in pacgraph man pages


Dear pacgraph maintainer,
the manpage-l10n project maintains a large number of translations of
man pages both from a large variety of sources (including pacgraph) as
well for a large variety of target languages.

During their work translators notice different possible issues in the
original (english) man pages. Sometimes this is a straightforward
typo, sometimes a hard to read sentence, sometimes this is a
convention not held up and sometimes we simply do not understand the
original.

We use several distributions as sources and update regularly (at
least every 2 month). This means we are fairly recent (some
distributions like archlinux also update frequently) but might miss
the latest upstream version once in a while, so the error might be
already fixed. We apologize and ask you to close the issue immediately
if this should be the case, but given the huge volume of projects and
the very limited number of volunteers we are not able to double check
each and every issue.

Secondly we translators see the manpages in the neutral po format,
i.e. converted and harmonized, but not the original source (be it man,
groff, xml or other). So we cannot provide a true patch (where
possible), but only an approximation which you need to convert into
your source format.

Finally the issues I'm reporting have accumulated over time and are
not always discovered by me, so sometimes my description of the
problem my be a bit limited - do not hesitate to ask so we can clarify
them.

I'm now reporting the errors for your project. If future reports
should use another channel, please let me know.

Man page: pacgraph.1
Issue:    what does »chain« mean? No visible difference with or without -n.

"Disable all chain compression."

``

Add a COLOR flag for optional dependencies

At the moment, we've got these colour-related flags (quoting man pacgraph):

     -t COLOR --top=COLOR
         Color of packages which are not dependencies.

     -d COLOR --dep=COLOR
         Color of packages which are dependencies.

It would help to have a separate colour for optional dependencies.

I like to use pacgraph to understand the relative sizes of packages that I might uninstall to make space, and currently optional dependencies are shown with the colour of the "not dependencies" (-t), which isn't wrong, but could be better.

Division by zero error in pacgraph-tk for packages with no dependencies

Consider a package with no dependencies, say tzdata.

When I run

pacgraph-tk tzdata

I get the following error message:

Loading repository.
warning: cron found in ['cronie', 'fcron'], assuming cronie
warning: netcat found in ['gnu-netcat', 'openbsd-netcat'], assuming gnu-netcat
warning: ttf-font found in ['ttf-bitstream-vera', 'ttf-dejavu', 'ttf-droid', 'ttf-freefont', 'ttf-liberation', 'ttf-linux-libertine', 'ttf-ubuntu-font-family'], assuming ttf-bitstream-vera
warning: d-runtime found in ['libgphobos-devel', 'liblphobos-devel', 'libphobos-devel'], assuming libgphobos-devel
warning: d-compiler found in ['dmd', 'gdc', 'ldc'], assuming dmd
warning: dhcp-client found in ['dhclient', 'dhcpcd'], assuming dhclient
warning: smtp-server found in ['exim', 'opensmtpd', 'postfix'], assuming exim
warning: smtp-forwarder found in ['esmtp', 'exim', 'msmtp-mta', 'nullmailer', 'opensmtpd', 'postfix', 'ssmtp'], assuming esmtp
warning: libreoffice-langpack found in ['libreoffice-af', 'libreoffice-am', 'libreoffice-ar', 'libreoffice-as', 'libreoffice-ast', 'libreoffice-be', 'libreoffice-bg', 'libreoffice-bn', 'libreoffice-bn-IN', 'libreoffice-bo', 'libreoffice-br', 'libreoffice-brx', 'libreoffice-bs', 'libreoffice-ca', 'libreoffice-ca-XV', 'libreoffice-cs', 'libreoffice-cy', 'libreoffice-da', 'libreoffice-de', 'libreoffice-dgo', 'libreoffice-dz', 'libreoffice-el', 'libreoffice-en-GB', 'libreoffice-en-US', 'libreoffice-en-ZA', 'libreoffice-eo', 'libreoffice-es', 'libreoffice-et', 'libreoffice-eu', 'libreoffice-fa', 'libreoffice-fi', 'libreoffice-fr', 'libreoffice-ga', 'libreoffice-gd', 'libreoffice-gl', 'libreoffice-gu', 'libreoffice-he', 'libreoffice-hi', 'libreoffice-hr', 'libreoffice-hu', 'libreoffice-id', 'libreoffice-is', 'libreoffice-it', 'libreoffice-ja', 'libreoffice-ka', 'libreoffice-kk', 'libreoffice-km', 'libreoffice-kn', 'libreoffice-ko', 'libreoffice-kok', 'libreoffice-ks', 'libreoffice-ku', 'libreoffice-lb', 'libreoffice-lo', 'libreoffice-lt', 'libreoffice-lv', 'libreoffice-mai', 'libreoffice-mk', 'libreoffice-ml', 'libreoffice-mn', 'libreoffice-mni', 'libreoffice-mr', 'libreoffice-my', 'libreoffice-nb', 'libreoffice-ne', 'libreoffice-nl', 'libreoffice-nn', 'libreoffice-nso', 'libreoffice-oc', 'libreoffice-om', 'libreoffice-or', 'libreoffice-pa-IN', 'libreoffice-pl', 'libreoffice-pt', 'libreoffice-pt-BR', 'libreoffice-ro', 'libreoffice-ru', 'libreoffice-rw', 'libreoffice-sa-IN', 'libreoffice-sat', 'libreoffice-sd', 'libreoffice-sh', 'libreoffice-si', 'libreoffice-sid', 'libreoffice-sk', 'libreoffice-sl', 'libreoffice-sq', 'libreoffice-sr', 'libreoffice-ss', 'libreoffice-st', 'libreoffice-sv', 'libreoffice-sw-TZ', 'libreoffice-ta', 'libreoffice-te', 'libreoffice-tg', 'libreoffice-th', 'libreoffice-tn', 'libreoffice-tr', 'libreoffice-ts', 'libreoffice-tt', 'libreoffice-ug', 'libreoffice-uk', 'libreoffice-uz', 'libreoffice-ve', 'libreoffice-vi', 'libreoffice-xh', 'libreoffice-zh-CN', 'libreoffice-zh-TW', 'libreoffice-zu'], assuming libreoffice-af
warning: phonon-backend found in ['phonon-gstreamer', 'phonon-vlc'], assuming phonon-gstreamer
Preparing 1 nodes.
Traceback (most recent call last):
  File "/usr/bin/pacgraph-tk", line 223, in <module>
    main()
  File "/usr/bin/pacgraph-tk", line 196, in main
    tree = pacgraph.pt_sizes(tree, 10, 100)
  File "/usr/bin/pacgraph", line 599, in pt_sizes
    tree[p].font_pt = convert(node.size)
  File "/usr/bin/pacgraph", line 597, in <lambda>
    convert = lambda s: int((max_pt-min_pt)*(s-min_s)/(max_s-min_s) + min_pt)
ZeroDivisionError: division by zero

There seems to be a division by zero error in the function converting package size to font pt.

Gentoo/Archlinux is being recognized as Debian

The script is looking for the file "apt" to recognize a Debian OS
(At least) on Gentoo /usr/bin/apt belongs to the package "java-config"
"apt-get" probably is the better pattern.

Necessary changes in file "pacgraph":

  • if any(map(exists, 'dpkg apt aptitude'.split())):
  • if any(map(exists, 'dpkg apt-get aptitude'.split())):

Cannot install via pip

Expected behavior

$ pip install https://github.com/keenerd/pacgraph/archive/master.zip

installs pacgraph.

Actual behavior

Defaulting to user installation because normal site-packages is not writeable
Collecting https://github.com/keenerd/pacgraph/archive/master.zip
  Downloading https://github.com/keenerd/pacgraph/archive/master.zip
     / 17 kB 273 kB/s
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-req-build-5pu_5svj/setup.py'"'"'; __file__='"'"'/tmp/pip-req-build-5pu_5svj/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-jpy4qhx5
         cwd: /tmp/pip-req-build-5pu_5svj/
    Complete output (5 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/usr/lib/python3.8/tokenize.py", line 392, in open
        buffer = _builtin_open(filename, 'rb')
    FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-req-build-5pu_5svj/setup.py'
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Comment

PKGBUILD is not available on all distros

Warnings and diagnostics sent to stdout instead of stderr

When redirecting pacgraph -c output the warnings and diagnostics are sent to stdout instead of the expected stderr such that the output file contains messages such as:

Autodetected Arch.
Loading package info
warning: xf86-input-driver found in ['xf86-input-evdev', 'xf86-input-libinput'], assuming xf86-input-evdev
...

Ideally these would be sent to stderr making it easier to parse the output as wanted without needing heuristics to peel away these other messages.

Non-humanised size values for -c

It would be nice to have an option for byte count instead of humanised sizes in the output of pacgraph -c making counting easier with tools like awk.

Post-processing in a pipeline could easily humanise the values.

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.