summaryrefslogtreecommitdiff
path: root/test/integration/framework
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/framework')
-rw-r--r--test/integration/framework8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/integration/framework b/test/integration/framework
index bae14e984..7c1b31ca2 100644
--- a/test/integration/framework
+++ b/test/integration/framework
@@ -1112,9 +1112,11 @@ insertinstalledpackage() {
for arch in $(getarchitecturesfromcommalist "$ARCH"); do
echo "Package: $NAME
Status: $STATUS
-Priority: $PRIORITY
-Section: $SECTION
-Installed-Size: 42
+Priority: $PRIORITY" >> "$FILE"
+ if [ "$SECTION" != '<none>' ]; then
+ echo "Section: $SECTION" >> "$FILE"
+ fi
+ echo "Installed-Size: 42
Maintainer: Joe Sixpack <joe@example.org>
Version: $VERSION" >> "$FILE"
test "$arch" = 'none' || echo "Architecture: $arch" >> "$FILE"