Re: tagging files (RPM packaging)
Bill Deegan <[email protected]>
| Newsgroups | gmane.comp.programming.tools.scons.user |
|---|---|
| Message-ID | <CAEyG4CFZk8DZDqW0P_06ZzGURkZZQiLUeVPhbiD0ciWiV2tKzw@mail.gmail.com> |
Interesting.. Yup. It seems reasonable to args2nodes for the first arg of Tag().. On Mon, Jan 3, 2022 at 12:59 PM Mats Wichmann <[email protected]> wrote: > On 1/3/22 00:06, Werner Reisberger wrote: > > > >> On Sun, Jan 2, 2022 at 2:52 AM Werner Reisberger <[email protected]> wrote: > >> > >>> On 2022-01-01 23:00, Bill Deegan wrote: > >>>> Can you try: > >>>> > >>>> Tag('file2.txt', 'DOC') > >>> > >>> This gives me: AttributeError: 'SConsEnvironment' object has no > >>> attribute 'Tag': > >>> Calling > >>> env.Tag('file2.txt', 'DOC') > >>> gives: AttributeError: 'str' object has no attribute 'Tag': > Okay, so I can confirm the packaging tool (generically, not specific to > the rpm piece) does not take the steps that most of the rest of the > codebase does of being explicit about accepting different types where a > node type is "expected". > > Manpage: > > Tag(node, tags) > > Annotates file or directory Nodes ... > > and it is indeed expecting to actually get a Node - this is why your > working example works, you explicitly create the Nodes first. it > doesn't pay any attention to whether it's a string and if so generating > a node from it. Will leave it to Bill to comment whether it should > (basically, calling env.argnodes(target) to convert, I believe). > > Obviously, we can correct the docs if nothing else. > _______________________________________________ > Scons-users mailing list > [email protected] > https://pairlist4.pair.net/mailman/listinfo/scons-users > _______________________________________________ Scons-users mailing list [email protected] https://pairlist4.pair.net/mailman/listinfo/scons-users