Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
Travel-Routing-DE-EFA
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
derf
Travel-Routing-DE-EFA
Commits
1574bc0c
Commit
1574bc0c
authored
10 years ago
by
Birte Kristina Friesel
Browse files
Options
Downloads
Patches
Plain Diff
fix exclude / --exclude bug
parent
663e5f1e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Changelog
+1
-0
1 addition, 0 deletions
Changelog
bin/efa
+4
-0
4 additions, 0 deletions
bin/efa
lib/Travel/Routing/DE/EFA.pm
+9
-5
9 additions, 5 deletions
lib/Travel/Routing/DE/EFA.pm
with
14 additions
and
5 deletions
Changelog
+
1
−
0
View file @
1574bc0c
...
...
@@ -2,6 +2,7 @@ git HEAD
* Route::Part: Add {arrival,departure}_{route,station}maps accessors
* efa: Add -m, --maps option
* Fix exclude / --exclude (didn't work at all previously)
Travel::Routing::DE::VRR 2.05 - Mon Mar 03 2014
...
...
This diff is collapsed.
Click to expand it.
bin/efa
+
4
−
0
View file @
1574bc0c
...
...
@@ -216,6 +216,10 @@ if ( defined $opt->{'ignore-info'} and length( $opt->{'ignore-info'} ) == 0 ) {
$opt
->
{'
ignore-info
'}
=
undef
;
}
if
(
$opt
->
{
exclude
}
)
{
$opt
->
{
exclude
}
=
[
split
(
/,/
,
join
(
'
,
',
@
{
$opt
->
{
exclude
}
}
)
)
];
}
$efa
=
eval
{
Travel::Routing::DE::
EFA
->
new
(
efa_url
=>
$efa_url
,
...
...
This diff is collapsed.
Click to expand it.
lib/Travel/Routing/DE/EFA.pm
+
9
−
5
View file @
1574bc0c
...
...
@@ -132,7 +132,7 @@ sub exclude {
my
$ok
=
0
;
for
my
$map_id
(
0
..
$#mapping
)
{
if
(
$exclude_type
eq
$mapping
[
$map_id
]
)
{
$self
->
{
post
}
->
{"
inclMOT_
${map_id}
"}
=
undef
;
delete
$self
->
{
post
}
->
{"
inclMOT_
${map_id}
"};
$ok
=
1
;
}
}
...
...
@@ -432,7 +432,9 @@ sub new_from_xml {
my
$self
=
{
xml_reply
=>
$opt
{
xml
}
};
$self
->
{
config
}
=
{
efa_url
=>
$opt
{
efa_url
},
};
$self
->
{
config
}
=
{
efa_url
=>
$opt
{
efa_url
},
};
$self
->
{
config
}
->
{
efa_url
}
=~
m{
(?<netroot> (?<root> [^:]+ : // [^/]+ ) / [^/]+ / )
...
...
@@ -459,7 +461,8 @@ sub submit {
if
(
$response
->
is_error
)
{
Travel::Routing::DE::EFA::Exception::
Net
->
throw
(
http_response
=>
$response
,
);
http_response
=>
$response
,
);
}
$self
->
{
xml_reply
}
=
$response
->
decoded_content
;
...
...
@@ -638,8 +641,9 @@ sub parse_xml_part {
sub
parse_xml
{
my
(
$self
)
=
@_
;
my
$tree
=
$self
->
{
tree
}
=
XML::
LibXML
->
load_xml
(
string
=>
$self
->
{
xml_reply
},
);
my
$tree
=
$self
->
{
tree
}
=
XML::
LibXML
->
load_xml
(
string
=>
$self
->
{
xml_reply
},
);
#say $tree->toString(2);
...
...
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