On Wed, Nov 22, 2017 at 2:00 PM, Vishal Verma <vishal.l.ve...@intel.com> wrote: > The rpmbuild and make-git-snapshot assume that the various ~/rpmbuild/* > directories are present. In case they weren't, git-archive would fail > with something like: > > /root/rpmbuild/SOURCES/ndctl-58.2.38.g8ad8f4c.tar.gz: No such file or > directory > > Add a 'mkdir -p' to make sure these directories are present. > > Cc: Dan Williams <dan.j.willi...@intel.com> > Signed-off-by: Vishal Verma <vishal.l.ve...@intel.com> > --- > rpmbuild.sh | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/rpmbuild.sh b/rpmbuild.sh > index 4535b46..1dd1709 100755 > --- a/rpmbuild.sh > +++ b/rpmbuild.sh > @@ -1,5 +1,6 @@ > #!/bin/bash > pushd $(dirname $0) >/dev/null > +mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
Hmm, I'd rather run rpmdev-setuptree than create this directories manually, and going further I'd rather just keep the assumption that rpmdev-setuptree has already been run before this script is run. _______________________________________________ Linux-nvdimm mailing list Linux-nvdimm@lists.01.org https://lists.01.org/mailman/listinfo/linux-nvdimm