Peter Eisentraut wrote:
> Package: svn-buildpackage
> Version: 0.6.18
> Severity: normal
> 
> It seems that using svn-buildpackage --svn-export requires the build
> dependencies to be satisfied.  I don't think that makes sense.

I agree.

Actually, this dependency issue is not singular to export. It is (was?) needed 
for tag operations.

I think the whole check for features/needs could be redesigned so that a check 
can be done at the begining, but is taken
into account only when needed.

The way I think it could be done is to not fail on the initial checks, but to 
cache the results for the different checks
that are done and only when a requirement needs to be fulfilled do a check on 
the cached result and fail then.


Since code sometimes speaks better, here is some pseudocode:


svnbpinit:
        cachedepssatisfied
        cachetrunkurldefined
        cachetagsurldefined
        cacheorigdirexists
....

svnbptag:
        checknopending or die "pending modifications"
        checktagsurldefined or die "tags url not defined"
        dotagstuff

svnbpexport:
        if checkusesmerge
                checkorigdirdefined or die "merge is used, but no orig dir"


Comments are welcome

-- 
Regards,
EddyP
=============================================
"Imagination is more important than knowledge" A.Einstein

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to