Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-build-utils
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
korinf
etersoft-build-utils
Commits
412d617f
Commit
412d617f
authored
Feb 06, 2010
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpmurl: cleanup code
parent
bc462e98
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
18 deletions
+23
-18
rpmurl
bin/rpmurl
+23
-18
No files found.
bin/rpmurl
View file @
412d617f
...
...
@@ -12,6 +12,8 @@
.
`
dirname
$0
`
/../share/eterbuild/functions/common
load_mod rpm web
PAGEURL
=
"http://sisyphus.ru/srpm/Sisyphus"
#############################
Usage
=
"Usage:
$name
[-c -f -p -s] spec or package..."
...
...
@@ -88,7 +90,6 @@ get_pkginfo()
fi
}
PAGEURL
=
"http://sisyphus.ru/srpm/Sisyphus"
get_pagepkginfo
()
{
local
i
=
${
1
}
...
...
@@ -126,27 +127,31 @@ do
if
[
-n
"
$ABOUTDIR
"
]
;
then
RPM_URL
=
`
dirname
$SOURCE
`
fi
[
"
$RPM_URL
"
=
"(none)"
]
&&
RPM_URL
=
""
if
[
-z
"
${
RPM_URL
}
"
]
;
then
warning
"Cannot get package URL, open from
$PAGEURL
"
get_pagepkginfo
$i
fi
fi
test
-z
"
$ABOUTDIR
"
&&
test
-z
"
${
RPM_URL
}
"
&&
fatal
"Cannot get package Url from spec
$i
"
if
[
-z
"
$CHECKONLY
"
]
;
then
if
[
-n
"
$RPM_URL
"
]
&&
[
"
$RPM_URL
"
!=
"(none)"
]
;
then
echog
"Opening URL '
$RPM_URL
' with browser '
$BROWSER
'"
$BROWSER
$RPM_URL
&
else
echog
"The package '
$i
' has not URL"
fi
echog
"Opening URL '
$RPM_URL
' with browser '
$BROWSER
'"
$BROWSER
$RPM_URL
&
continue
fi
# Check package URL
if
[
-z
"
$PARALL
"
]
;
then
echog
-n
"Checking URL '
$RPM_URL
' from package
$i
..."
$GET
$RPM_URL
-s
-d
else
if
[
-z
"
$PARALL
"
]
;
then
echog
-n
"Checking URL '
$RPM_URL
' from package
$i
..."
$GET
$RPM_URL
-s
-d
(
RESULT
=
`
$GET
$RPM_URL
-s
-d
`
;
if
[
-n
"
$FAILEDONLY
"
]
;
then
test
${
RESULT
/ *
}
=
"200"
||
printf
"%-40s %s %s
\n
"
$i
$RPM_URL
"
${
RESULT
}
"
else
(
RESULT
=
`
$GET
$RPM_URL
-s
-d
`
;
if
[
-n
"
$FAILEDONLY
"
]
;
then
test
${
RESULT
/ *
}
=
"200"
||
printf
"%-40s %s %s
\n
"
$i
$RPM_URL
"
${
RESULT
}
"
else
echog
"Checking URL '
$RPM_URL
' from package
$i
...
$RESULT
"
;
fi
)
&
echog
"Checking URL '
$RPM_URL
' from package
$i
...
$RESULT
"
;
fi
)
&
fi
done
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment