Commit 805a2056 authored by Bernhard Link's avatar Bernhard Link

drop 'FILE LOCATION' headers from Contents files

parent bc8ac537
2018-08-12 Bernhard R. Link <brlink@debian.org>
* add _listcodenames command (based on work from Benjamin Drung)
* drop "FILE LOCATION" headers from Contents files
2017-03-02 Bernhard R. Link <brlink@debian.org>
* handle .asc files in source files better
......
......@@ -488,7 +488,6 @@ retvalue fakefilelist(const char *filekey) {
"", 1, true, false);
}
static const char header[] = "FILE LOCATION\n";
static const char separator_chars[] = "\t ";
static void filelist_writefiles(char *dir, size_t len,
......@@ -562,7 +561,6 @@ retvalue filelist_write(struct filelist_list *list, struct filetorelease *file)
if (FAILEDTOALLOC(buffer))
return RET_ERROR_OOM;
(void)release_writedata(file, header, sizeof(header) - 1);
buffer[0] = '\0';
filelist_writefiles(buffer, 0, list->root->files, file);
if (list->root->subdirs != NULL)
......
......@@ -396,7 +396,6 @@ dodiff /dev/null results
find i -type f > results
dodiff /dev/null results
cat > results.expected <<EOF
FILE LOCATION
x tasty/bird,tasty/bird-addons
a/1 tasty/bird,tasty/bird-addons
dir/another tasty/bird,tasty/bird-addons
......@@ -406,12 +405,10 @@ EOF
gunzip -c dists/B/Contents-abacus.gz > results
dodiff results.expected results
cat > results.expected <<EOF
FILE LOCATION
EOF
gunzip -c dists/B/cat/Contents-abacus.gz > results
dodiff results.expected results
cat > results.expected <<EOF
FILE LOCATION
x tasty/bird,tasty/bird-addons
a/1 tasty/bird,tasty/bird-addons
dir/another tasty/bird,tasty/bird-addons
......@@ -505,7 +502,6 @@ dodiff /dev/null results
find i -type f > results
dodiff /dev/null results
cat > results.expected <<EOF
FILE LOCATION
x tasty/bird,tasty/bird-addons,cat/tasty/bird,cat/ugly/bird-addons
a/1 tasty/bird,tasty/bird-addons,cat/tasty/bird,cat/ugly/bird-addons
dir/another tasty/bird,tasty/bird-addons,cat/tasty/bird,cat/ugly/bird-addons
......@@ -515,7 +511,6 @@ EOF
gunzip -c dists/B/Contents-abacus.gz > results
dodiff results.expected results
cat > results.expected <<EOF
FILE LOCATION
x cat/tasty/bird,cat/ugly/bird-addons
a/1 cat/tasty/bird,cat/ugly/bird-addons
dir/another cat/tasty/bird,cat/ugly/bird-addons
......@@ -525,7 +520,6 @@ EOF
gunzip -c dists/B/cat/Contents-abacus.gz > results
dodiff results.expected results
cat > results.expected <<EOF
FILE LOCATION
x tasty/bird,tasty/bird-addons
a/1 tasty/bird,tasty/bird-addons
dir/another tasty/bird,tasty/bird-addons
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment