ref: refs/heads/master
commit 79c56fbf33a214db6a1ae5924fff49ca1f434009
Author: Michael Andres
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@opensuse.org
For additional commands, e-mail: zypp-commit+help@opensuse.org