Debian package loses sources

Hey there,

I’m having trouble building a Debian package. (On my private instance as well as on the public OBS instance (build.opensuse.org)
Every time I build the package OBS says that the build was successful. I can install the package, that is not the problem.

The Problem is: The sources are missing. That means I have a package without the software.

Can someone please help me on this one? Thanks

I have noticed that OBS extracts the sources tar somewhat like this:

BUILD/
--> usr/ → local/
`–> …

Some research in .deb package building has shown me (please correct me if I’m wrong) that it should be something more like this:

BUILD/
--> debian/ → pst-pachtnix/ (generally the package name)
--> usr/ → local/
`–> …

Here is the link to my project on build.opensuse.org:
https://build.opensuse.org/package/show/home:studerluk/pst-patchnix

Note: It is a test package, don’t bother the actual content of it.

Just noticed the messed up displaying of the directory structure.

It should look like this:

BUILD/
--> usr/ → local/
[INDENT=2]`–> …
[/INDENT]

And like this:

BUILD/
--> debian/ → pst-pachtnix/ (generally the package name)
[INDENT=2]--> usr/ [/INDENT] [INDENT=3] → local/
[/INDENT]
[INDENT=4]`–> …
[/INDENT]