This file is indexed.

/usr/bin/pkgos-generate-snapshot is in openstack-pkg-tools 75.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
#!/bin/bash

set -e

rm -f dist/*
python setup.py sdist
package=$(cd dist; ls -1 *.tar.gz)
version=$(echo $package | sed -e "s/\.tar\.gz//" -e "s/.*-//g")
deb_version=$(echo $version | sed -e "s/\.0a/~a/" -e "s/\.0b/~b/" -e "s/\.dev/~dev/")
pkg_name=$(echo $package | sed -e 's/\(.*\)-.*/\1/')

mkdir -p ~/tarballs
mv dist/$package ~/tarballs/${pkg_name}_${deb_version}.orig.tar.gz
echo "Snapshot placed under ~/tarballs/${pkg_name}_${deb_version}.orig.tar.gz"