mirror of
https://github.com/smxi/inxi.git
synced 2025-01-19 08:57:57 +00:00
New version, new tarball. Only for uprmq distros, small update to add support for another
repo type output, the initial listing was not complete of possible syntaxes. Now handles: Nonfree Updates (Local19) /mnt/data/mirrors/mageia/distrib/cauldron/x86_64/media/nonfree/updates as well, apparently that is a possible output format in certain cases with urpmq. Non urpmq distros ignore this update, there are no other actual changes.
This commit is contained in:
parent
088a7812a1
commit
9dff36e58e
9
inxi
9
inxi
|
@ -1,8 +1,8 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
########################################################################
|
########################################################################
|
||||||
#### Script Name: inxi
|
#### Script Name: inxi
|
||||||
#### Version: 1.9.15
|
#### Version: 1.9.16
|
||||||
#### Date: October 4 2013
|
#### Date: October 6 2013
|
||||||
#### Patch Number: 00
|
#### Patch Number: 00
|
||||||
########################################################################
|
########################################################################
|
||||||
#### SPECIAL THANKS
|
#### SPECIAL THANKS
|
||||||
|
@ -7491,6 +7491,7 @@ $repo_data_working"
|
||||||
# Contrib Updates ftp://ftp.uwsg.indiana.edu/linux/mandrake/official/2011/x86_64/media/contrib/updates
|
# Contrib Updates ftp://ftp.uwsg.indiana.edu/linux/mandrake/official/2011/x86_64/media/contrib/updates
|
||||||
# Non-free ftp://ftp.uwsg.indiana.edu/linux/mandrake/official/2011/x86_64/media/non-free/release
|
# Non-free ftp://ftp.uwsg.indiana.edu/linux/mandrake/official/2011/x86_64/media/non-free/release
|
||||||
# Non-free Updates ftp://ftp.uwsg.indiana.edu/linux/mandrake/official/2011/x86_64/media/non-free/updates
|
# Non-free Updates ftp://ftp.uwsg.indiana.edu/linux/mandrake/official/2011/x86_64/media/non-free/updates
|
||||||
|
# Nonfree Updates (Local19) /mnt/data/mirrors/mageia/distrib/cauldron/x86_64/media/nonfree/updates
|
||||||
while read repo_line
|
while read repo_line
|
||||||
do
|
do
|
||||||
repo_line=$( gawk '
|
repo_line=$( gawk '
|
||||||
|
@ -7502,8 +7503,8 @@ $repo_data_working"
|
||||||
print $0
|
print $0
|
||||||
}' <<< $repo_line )
|
}' <<< $repo_line )
|
||||||
# urpmq output is the same each line, repo name space repo url, can be:
|
# urpmq output is the same each line, repo name space repo url, can be:
|
||||||
# rsync://, ftp://, file://, http://
|
# rsync://, ftp://, file://, http:// OR repo is locally mounted on FS in some cases
|
||||||
if [[ -n $( grep '://' <<< $repo_line ) ]];then
|
if [[ -n $( grep -E '(://|[[:space:]]/)' <<< $repo_line ) ]];then
|
||||||
# cut out the repo first
|
# cut out the repo first
|
||||||
repo_data_working2=$( grep -Eo '[^[:space:]]+://.*' <<< $repo_line )
|
repo_data_working2=$( grep -Eo '[^[:space:]]+://.*' <<< $repo_line )
|
||||||
# then get the repo name string by slicing out the url string
|
# then get the repo name string by slicing out the url string
|
||||||
|
|
|
@ -1,3 +1,22 @@
|
||||||
|
=====================================================================================
|
||||||
|
Version: 1.9.16
|
||||||
|
Patch Version: 00
|
||||||
|
Script Date: October 6 2013
|
||||||
|
-----------------------------------
|
||||||
|
Changes:
|
||||||
|
-----------------------------------
|
||||||
|
New version, new tarball. Only for uprmq distros, small update to add support for another
|
||||||
|
repo type output, the initial listing was not complete of possible syntaxes. Now handles:
|
||||||
|
|
||||||
|
Nonfree Updates (Local19) /mnt/data/mirrors/mageia/distrib/cauldron/x86_64/media/nonfree/updates
|
||||||
|
|
||||||
|
as well, apparently that is a possible output format in certain cases with urpmq.
|
||||||
|
|
||||||
|
Non urpmq distros ignore this update, there are no other actual changes.
|
||||||
|
|
||||||
|
-----------------------------------
|
||||||
|
-- Harald Hope - Sun, 06 Oct 2013 11:06:36 -0700
|
||||||
|
|
||||||
=====================================================================================
|
=====================================================================================
|
||||||
Version: 1.9.15
|
Version: 1.9.15
|
||||||
Patch Version: 00
|
Patch Version: 00
|
||||||
|
|
Loading…
Reference in a new issue