From ab6502c9df0fbbe19624d7996b35e4d2ed235ff9 Mon Sep 17 00:00:00 2001 From: Daniel Heule Date: Wed, 25 Jun 2014 00:16:40 +0200 Subject: [PATCH 1/2] correct match if / is the last char of a url and the end of the line --- cdist/conf/type/__zypper_repo/explorer/repo_id | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cdist/conf/type/__zypper_repo/explorer/repo_id b/cdist/conf/type/__zypper_repo/explorer/repo_id index be0b9771..9c1cb365 100644 --- a/cdist/conf/type/__zypper_repo/explorer/repo_id +++ b/cdist/conf/type/__zypper_repo/explorer/repo_id @@ -26,4 +26,4 @@ if [ -f "$__object/parameter/uri" ]; then else uri="$__object_id" fi -echo $(zypper lr -u | grep -E "\<$uri\>" | cut -d'|' -f 1 | grep -E '^[0-9]' ) +echo $(zypper lr -u | grep -F "$uri" | cut -d'|' -f 1 | grep -E '^[0-9]' ) From 614c73e10e6c1b2f4c4e2075bf8ad9b377c944f7 Mon Sep 17 00:00:00 2001 From: Daniel Heule Date: Wed, 25 Jun 2014 00:18:41 +0200 Subject: [PATCH 2/2] correct date of c --- cdist/conf/type/__zypper_repo/explorer/repo_id | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cdist/conf/type/__zypper_repo/explorer/repo_id b/cdist/conf/type/__zypper_repo/explorer/repo_id index 9c1cb365..6a4791e6 100644 --- a/cdist/conf/type/__zypper_repo/explorer/repo_id +++ b/cdist/conf/type/__zypper_repo/explorer/repo_id @@ -1,6 +1,6 @@ #!/bin/sh # -# 2013 Daniel Heule (hda at sfs.biz) +# 2013-2014 Daniel Heule (hda at sfs.biz) # # This file is part of cdist. #