not enough hash marks of the -h option of the rpm command
Hi,
This seems a boring question, but I'm just curious. In the rpm manual, Code:
-h, --hash Well, I just want to know where the `50 hash marks' are. |
On my Opensuse box only 43 hashes are printed out. By the way, looking at the source code of RPM, in the function printHash you can see this line of code:
Code:
rpmcliHashesTotal = (isatty (STDOUT_FILENO) ? 44 : 50); Code:
isatty (STDOUT_FILENO) Code:
$ rpm --test -Uvh package.rpm > file Moreover, I will not investigate why on my system the hashes displayed on the terminal are 43! Anyway the source code could unlock the mystery as well.. :jawa: |
Depends which "man page" you read.
The old 'man rpm' from 1995 was probably never edited. http://www.nordugrid.org/documents/r...everybody.html QUOTE : " h - print progress bar with hash-marks " ( Doesn't matter, if it's 40 or 50.) Other information, rpm-4.7.0, Changelog line 66816 : ( 1996 ) "take advantage of ARCHIVESIZE (if present) when displaying hash marks" The code is in a source file as some math expression, I guess. And in the resultant binary rpm, inside an object ? .. |
Wow. Thank you guys. Help me a lot!
|
All times are GMT -5. The time now is 04:07 AM. |