Mailinglist Archive: zypp-commit (232 mails)

< Previous Next >
[zypp-commit] <libzypp> master : Cheap test first.
  • From: Michael Andres <ma@xxxxxxx>
  • Date: Fri, 27 Nov 2009 11:12:32 +0100
  • Message-id: <E1NDxoa-0000xQ-Bx@xxxxxxxxxxxxxxxx>
ref: refs/heads/master
commit 79c56fbf33a214db6a1ae5924fff49ca1f434009
Author: Michael Andres <ma@xxxxxxx>
Date: Fri Nov 27 11:12:32 2009 +0100

Cheap test first.
---
zypp/target/TargetImpl.cc | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/zypp/target/TargetImpl.cc b/zypp/target/TargetImpl.cc
index 7ae3bae..5bb9613 100644
--- a/zypp/target/TargetImpl.cc
+++ b/zypp/target/TargetImpl.cc
@@ -234,13 +234,13 @@ namespace zypp
if ( ! str::hasPrefix( *sit, prefix ) )
continue;

+ if ( (*sit)[prefix.size()] != '\0' && (*sit)[prefix.size()] != '-'
)
+ continue; // if not exact match it had to continue with '-'
+
PathInfo script( scriptsDir / *sit );
if ( ! script.isFile() )
continue;

- if ( (*sit)[prefix.size()] != '\0' && (*sit)[prefix.size()] != '-'
)
- continue; // if not exact match it had to continue with '-'
-
// Assert it's set executable
filesystem::addmod( script.path(), 0500 );

--
To unsubscribe, e-mail: zypp-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages