Be more relaxed when running lint on a single name
When eg. running "tox -elint -- barbican", the rendering works fine but then the spec is not checked because barbican.spec.j2 renders to openstack-barbican.spec . Be more relaxed when trying to find the rendered spec file. Change-Id: I589c3f64bffcbadb9457fd96b29197e684516c86
This commit is contained in:
parent
069ee4fc3a
commit
b18f044dbe
@ -15,7 +15,7 @@ thome=$(mktemp -d)
|
||||
cat openstack/openstack-macros/macros.openstack-singlespec > $thome/.rpmmacros
|
||||
|
||||
failed=0
|
||||
for spec in `find $WORKSPACE/logs/suse/ -name "${FIND_STR}.spec" -type f -print` ; do
|
||||
for spec in `find $WORKSPACE/logs/suse/ -name "*${FIND_STR}.spec" -type f -print` ; do
|
||||
echo "Checking $spec"
|
||||
egrep -q '^Source:' $spec && {
|
||||
echo "$spec should not have Source: lines. Please use Source0: instead."
|
||||
|
@ -17,7 +17,7 @@ echo "run spec-cleaner over specfiles from $WORKSPACE/logs/"
|
||||
count=0
|
||||
# TODO(toabctl): also run spec-cleaner with non-SUSE specs
|
||||
# but the current problem is that the license check works for SUSE only
|
||||
for spec in `find $WORKSPACE/logs/suse/ -name "${FIND_STR}.spec" -type f -print` ; do
|
||||
for spec in `find $WORKSPACE/logs/suse/ -name "*${FIND_STR}.spec" -type f -print` ; do
|
||||
echo "spec-cleaner checking $spec"
|
||||
# NOTE(toabctl):spec-cleaner can not ignore epochs currently
|
||||
sed -i '/^Epoch:.*/d' $spec
|
||||
|
Loading…
Reference in New Issue
Block a user