Code

* Fixed sed lines for plugin creation
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 5 Nov 2009 08:22:46 +0000 (08:22 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 5 Nov 2009 08:22:46 +0000 (08:22 +0000)
* Added "Breaks" for plugins

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14751 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/dh-make-gosa

index cc614316a56d7ab1fe6aa648884de17715d2a985..0e92818eb2a6c1af870038c33a44be4d1164b395 100755 (executable)
@@ -242,8 +242,9 @@ else
        sed -i 's/^Depends: .*$/Depends: gosa/g' debian/control
 fi
 if [ "$PL_CONFLICTS" ]; then
-       sed "11Conflicts: $PL_CONFLICTS" debian/control
+       sed -i "11iConflicts: $PL_CONFLICTS" debian/control
 fi
+sed -i "12iBreaks: gosa (<2.6)" debian/control
 sed -i 's/^\(Build-Depends: .*\)$/\1, dpatch/g' debian/control
 sed -i "s/^Description: .*$/Description: $PL_NAME plugin for GOsa/g" debian/control
 sed -i "s/^ <.*$/ %DESCRIPTION%/g" debian/control