Skip to content

Loading…

`xargs` fails miserably #21

Closed
Kwpolska opened this Issue · 0 comments

1 participant

@Kwpolska
Owner
[kwpolska@kwpolska-lin sample-scripts]% ./upgrade.py -l | awk '{print $1}' | grep ruby | xargs pkgbuilder -S   
==> Building ruby-excon...
stty: standard input: Inappropriate ioctl for device
Traceback (most recent call last):
  File "/usr/bin/pkgbuilder", line 12, in <module>
    pkgbuilder.main.main()
  File "/usr/lib/python3.2/site-packages/pkgbuilder/main.py", line 188, in main
    out = build.auto_build(pkgname, DS.depcheck, DS.pkginst)
  File "/usr/lib/python3.2/site-packages/pkgbuilder/build.py", line 105, in auto_build
    pkginstall)
  File "/usr/lib/python3.2/site-packages/pkgbuilder/build.py", line 252, in build_runner
    prefixp='  -> ')
  File "/usr/lib/python3.2/site-packages/pkgbuilder/utils.py", line 65, in print_package_search
    termwidth = int(size.read().split()[1])
IndexError: list index out of range

Actually, it isn’t my fault. It is the fault of the magic used to display the print_package_search. Fix? If stty size breaks, ignore and set termwidth to 80.

@Kwpolska Kwpolska was assigned
@Kwpolska Kwpolska added a commit that referenced this issue
@Kwpolska v2.1.5.3: #21 and stuff
Signed-off-by: Kwpolska <kwpolska@gmail.com>
6dd734a
@Kwpolska Kwpolska closed this
@Kwpolska Kwpolska added a commit that referenced this issue
@Kwpolska v2.1.5.3: #21 and stuff
Signed-off-by: Kwpolska <kwpolska@gmail.com>
50dd7f9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.