Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update_repo: extract source files list from *.dsc file #5116

Closed
Totktonada opened this issue Jun 25, 2020 · 1 comment
Closed

update_repo: extract source files list from *.dsc file #5116

Totktonada opened this issue Jun 25, 2020 · 1 comment
Labels
qa Issues related to tests or testing subsystem

Comments

@Totktonada
Copy link
Member

Tarantool version: 2.5.0-158-gf84cb1aae.

Now the tool pushes all *.tar.*z files to the storage together with *.dsc: some source files may be missed, some extra files may be pushed.

I would use a snippet like the following to extract exact list of source files (it is from tarantool/tarantool-php#162):

# Push all source files listed in .dsc file together with
# the file.
#
# FIXME: It seems logical to move this logic to the
# packagecloud tool we use.
files="${file}"
if [ "${extension}" = "dsc" ]; then 
     parse_dsc_file='{
         if ($0 == "Files:") {
             FILES_SECTION = 1;
         } else if (FILES_SECTION != 0) {
             print "build/"$3;
         }
     }'
     files="${files} $(awk "${parse_dsc_file}" "${file}")"
fi

Note: It adds build/ before each source file name. Let's adopt it for your needs.

@Totktonada
Copy link
Member Author

We don't use update_repo.sh anymore. We replaced it with https://github.com/tarantool/rws.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
qa Issues related to tests or testing subsystem
Projects
None yet
Development

No branches or pull requests

1 participant