Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 599696 Details for
Bug 837247
RHEV-M can't list all RHEV-H images in upgrade drop-down list.
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
A script to generate missing .txt files
gentxt4iso (text/plain), 1.80 KB, created by
Doron Fediuck
on 2012-07-23 06:47:58 UTC
(
hide
)
Description:
A script to generate missing .txt files
Filename:
MIME Type:
Creator:
Doron Fediuck
Created:
2012-07-23 06:47:58 UTC
Size:
1.80 KB
patch
obsolete
>#!/bin/bash > >DEST=$1 >FILES="$DEST/rhevh-*-*.iso" >VER= >REL= > >usage () { > echo " " > echo "Usage: $0 rhevh-iso-folder [-l|--link]" > echo "rhevh-iso-folder: The folder where rhevh iso files are being stored. ie- /usr/share/rhev-hypervisor" > echo "[-l|--link]: Generate txt files for symbolic links as well. By default sym-links are skipped." >} > >if [ "x${DEST}" = "x-h" -o "x${DEST}" = "x--help" ]; then > usage > exit 0 >elif [ ! -d "${DEST}" ]; then > echo " Given argument '${DEST}' is not an existing directory." >&2 > echo " Please re-run with an existing directory with rhevh iso files." >&2 > exit 1 >fi > >check_parts () { ># echo "in check_parts. Got: $1" > if [ $1 -ne 3 ]; then > echo " Current file has too few or many '-' in its name." >&2 > return 1 > fi > return 0 >} > >generate_file () { > ret=0 ># echo "in generate_file. Got: $1" > if [ -f $1 ]; then > echo " Skipping existing TXT file." > else > echo ">>> Generating: $1" > echo "$REL,$VER" > $1 > ret=$? > fi > return $ret >} > >OLD_IFS=$IFS >ENABLE_SYMLINK=0 >if [ "x$2" = "x-l" -o "x$2" = "x--link" ]; then > ENABLE_SYMLINK=1 >fi > >for f in $FILES >do > echo "Processing file: $f" > cur_file=`basename $f .iso` > IFS="-" read -ra arr <<<"$cur_file" > check_parts ${#arr[@]} > if [ $? -ne 0 ]; then > echo " Bad file name format. Skipping $f file" >&2 > elif [ -h $f -a $ENABLE_SYMLINK -eq 0 ]; then > echo " Skipping $f symbolic link file." > else > REL=${arr[1]} > VER=${arr[2]} > ver_file=version-$REL-$VER.txt > generate_file $ver_file > fi >done > >IFS=$OLD_IFS > >exit 0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 837247
:
595922
| 599696