Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
lede-mikrotik
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Johannes Rudolph
lede-mikrotik
Commits
103b69e2
Commit
103b69e2
authored
11 years ago
by
Jo-Philipp Wich
Browse files
Options
Downloads
Patches
Plain Diff
feeds: fix check for core packages that are not in the package/ toplevel directory
SVN-Revision: 36763
parent
56a3396b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/feeds
+10
-1
10 additions, 1 deletion
scripts/feeds
with
10 additions
and
1 deletion
scripts/feeds
+
10
−
1
View file @
103b69e2
...
...
@@ -333,6 +333,15 @@ sub lookup_package($$) {
return
;
}
sub
is_core_package
($)
{
my
$package
=
shift
;
foreach
my
$file
("
tmp/info/.packageinfo-
$package
",
glob
("
tmp/info/.packageinfo-*_
$package
"))
{
next
unless
index
(
$file
,
"
tmp/info/.packageinfo-feeds_
");
return
1
if
-
s $file;
}
return 0;
}
sub install_package {
my $feed = shift;
my $nam
e
=
shift
;
...
...
@@ -342,7 +351,7 @@ sub install_package {
$feed
or
do
{
$installed
{
$name
}
and
return
0
;
# TODO: check if it's already installed within ./package directory
$feed_src
->
{
$name
}
or
-
d
"
./
package
/
$name
"
or
warn
"
WARNING: No feed for package '
$name
' found, maybe it's already part of the standard packages?
\n
";
$feed_src
->
{
$name
}
or
is_core_
package
(
$name
)
or
warn
"
WARNING: No feed for package '
$name
' found, maybe it's already part of the standard packages?
\n
";
return
0
;
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment