How do I include a wget in a source-package or reciepe?

Asked by Anders Wallenquist

I have a wget in my rules-file. This works when I localy builds binary packages with debuild -b but gives me this error when building at launchpad:

wget -q -r -A .pdf,.zip -X /pub/sourceforge/b/project/bo/bots/OldFiles --no-parent -nH --cut-dirs=6
make: *** [build] Error 4
dpkg-buildpackage: error: debian/rules build gave error exit status 2
Build finished at 20100825-2040
FAILED [dpkg-buildpackage died]

        mkdir -p etc/bots
        cp -r bots/config/* etc/bots
        wget -q -r -A .pdf,.zip -X /pub/sourceforge/b/project/bo/bots/OldFiles --no-parent -nH --cut-dirs=6
        mv grammars\ for\ edifact grammars_for_edifact
        mv grammars\ for\ x12 grammars_for_x12
        mv bots\ open\ source\ edi\ software bots_open_source_edi_software
        mv user\ contributed\ plugins user_contributed_plugins

 bots - 2.0.1-1ppa10 @

Question information

English Edit question
Launchpad itself Edit question
No assignee Edit question
Solved by:
Michael Nelson
Last query:
Last reply:
Revision history for this message
Thomas Karl Pietrowski (thopiekar) said :

I don't really understand what you want to download, but if these files are also available in svn you can make a branch import of the svn location and nest it into your build.

Revision history for this message
Anders Wallenquist (aw) said :

No, in this case its 10 to 30 zip-files with edi-grammar for the /usr/share/doc/bots/example-directory. They are uploaded at sourceforge and the package are to deliver the latest bunch.

Revision history for this message
Best Michael Nelson (michael.nelson) said :

The launchpad builders do not have access to the outside world. The can access other PPAs and the archive.

I'm not certain, but your best solution might be to instead include a post-inst script that (optionally) downloads and installs these examples instead of including them in the package itself. (or just refering to them from the docs in the package).

Revision history for this message
Anders Wallenquist (aw) said :

Thanks Michael Nelson, that solved my question.